requiring twitter_stream in threaded worker fixes ArgumentError

The threaded worker threw 'A copy of TwitterStream has been removed from
the module tree but is still active!' when running in development,
explicitly requiring 'twitter_stream' fixes that exception.

Dominik Sander 10 anni fa
parent
commit
582db44791
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      bin/threaded.rb

+ 1 - 0
bin/threaded.rb

@@ -1,5 +1,6 @@
1 1
 require 'thread'
2 2
 require 'huginn_scheduler'
3
+require 'twitter_stream'
3 4
 
4 5
 STDOUT.sync = true
5 6
 STDERR.sync = true