lib/chillout/middleware/creations_monitor.rb in chillout-0.2.1 vs lib/chillout/middleware/creations_monitor.rb in chillout-0.2.2

- old
+ new

@@ -6,11 +6,12 @@ @client = client end def call(env) response = @app.call(env) + ensure if Thread.current[:creations] - @client.send_creations(Thread.current[:creations]) + @client.enqueue(Thread.current[:creations]) Thread.current[:creations] = nil end response end end