lib/vines/stream/http/session.rb in vines-0.3.2 vs lib/vines/stream/http/session.rb in vines-0.4.0
- old
+ new
@@ -20,9 +20,11 @@
end
def close
Sessions.delete(@id)
router.delete(self)
+ delete_from_cluster
+ unsubscribe_pubsub
@requests.each {|req| req.stream.close_connection }
@requests.clear
@responses.clear
@state = Client::Closed.new(nil)
@unbound = true