mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 20:26:28 +08:00
FIX: Uninitialized class variable error in sidekiq (#17227)
Follow-up to 4199ada1ce
This commit is contained in:
parent
3f5e19c62a
commit
7d41e980c9
|
@ -100,7 +100,7 @@ module Jobs
|
||||||
|
|
||||||
@@log_queue ||= Queue.new
|
@@log_queue ||= Queue.new
|
||||||
|
|
||||||
if !@@log_thread || !@@log_thread.alive?
|
if !defined?(@@log_thread) || !@@log_thread.alive?
|
||||||
@@log_thread = Thread.new do
|
@@log_thread = Thread.new do
|
||||||
loop do
|
loop do
|
||||||
@@logger << @@log_queue.pop
|
@@logger << @@log_queue.pop
|
||||||
|
|
Loading…
Reference in New Issue
Block a user