To not stream threads at once (module require issue).
This commit is contained in:
parent
0c5afe9bd8
commit
c5c22a6b68
1 changed files with 4 additions and 1 deletions
|
@ -159,10 +159,13 @@ stream all accounts
|
|||
updated_at: channel.updated_at
|
||||
}
|
||||
|
||||
# start channels with delay
|
||||
sleep @@channel_stream.count
|
||||
|
||||
# start threads for each channel
|
||||
@@channel_stream[channel.id][:thread] = Thread.new {
|
||||
begin
|
||||
logger.debug "Started stream channel for '#{channel.id}' (#{channel.area})..."
|
||||
logger.info "Started stream channel for '#{channel.id}' (#{channel.area})..."
|
||||
@@channel_stream[channel.id][:stream_instance] = channel.stream_instance
|
||||
@@channel_stream[channel.id][:stream_instance].stream
|
||||
@@channel_stream[channel.id][:stream_instance].disconnect
|
||||
|
|
Loading…
Reference in a new issue