Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Reset RuoteKit.storage_participant when starting the engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Schönebaum committed Feb 10, 2010
1 parent 86d579a commit 12aeef3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ruote-kit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def run_engine!
storage = configuration.storage_instance
self.engine = Ruote::Engine.new( storage )

@storage_participant = nil

run_worker!( true ) if configuration.run_worker
end

Expand Down Expand Up @@ -106,7 +108,7 @@ def shutdown_worker!

def storage_participant
return nil if self.engine.nil?
Ruote::StorageParticipant.new(self.engine) # don't cache instance -- won't work with in-memory storage
@storage_participant ||= Ruote::StorageParticipant.new(self.engine)
end

end
Expand Down

0 comments on commit 12aeef3

Please sign in to comment.