Permalink
Browse files

close processor on server stop

  • Loading branch information...
1 parent 0890b11 commit 013c7798ffd705a4f39a46c21c90f2d96ec095e7 @arya committed Jul 13, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/pandemic/server_side/server.rb
@@ -74,6 +74,7 @@ def start
@listener.close if @listener
@peers.values.each { |p| p.disconnect }
@clients.each {|c| c.close }
+ self.processor.disconnect if Config.fork_for_processor
rescue Exception => e
warn("Unhandled exception in server listening thread:\n#{e.inspect}\n#{e.backtrace.join("\n")}")
end

0 comments on commit 013c779

Please sign in to comment.