lib/hara/server.rb in hara-0.2.1 vs lib/hara/server.rb in hara-0.2.2
- old
+ new
@@ -14,11 +14,12 @@
ws.onopen { |handshake|
actor = Hara::Application.new handshake, ws
}
- ws.onclose {
+ ws.onclose {|close_info = {}|
begin
+ actor.async.set_close_info close_info
actor.terminate! if actor.alive?
rescue Celluloid::DeadActorError => e
end
}