turns out Bacon.run is called for each spec, let's make sure we don't override the main_activity ivar with nil

This commit is contained in:
Laurent Sansonetti
2015-02-03 19:02:18 +01:00
committed by Watson
parent d2491653e9
commit 7635cb53e8

View File

@@ -511,7 +511,7 @@ module Bacon
if defined?(NSObject)
current_context.performSelector("run", withObject:nil, afterDelay:0)
else
@main_activity = arg
@main_activity ||= arg
current_context.run
end
end