diff options
author | Jon Moss <me@jonathanmoss.me> | 2016-09-25 17:04:21 -0400 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2016-10-02 08:45:38 -0400 |
commit | 35a497dc2960cf6b46b7c47853f095326123490c (patch) | |
tree | 4f50a82873de94212a7db9b1fc01785562d7711b /actioncable/lib/action_cable/server | |
parent | a5dfba4135574db62fbf3cf71ea1fd953acb4768 (diff) | |
download | rails-35a497dc2960cf6b46b7c47853f095326123490c.tar.gz rails-35a497dc2960cf6b46b7c47853f095326123490c.tar.bz2 rails-35a497dc2960cf6b46b7c47853f095326123490c.zip |
Move behavior to Server::Base, and flush pubsub
Diffstat (limited to 'actioncable/lib/action_cable/server')
-rw-r--r-- | actioncable/lib/action_cable/server/base.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/actioncable/lib/action_cable/server/base.rb b/actioncable/lib/action_cable/server/base.rb index 67ada7cc2e..419eccd73c 100644 --- a/actioncable/lib/action_cable/server/base.rb +++ b/actioncable/lib/action_cable/server/base.rb @@ -37,9 +37,13 @@ module ActionCable connections.each(&:close) @mutex.synchronize do - worker_pool.halt if @worker_pool - + # Shutdown the worker pool + @worker_pool.halt if @worker_pool @worker_pool = nil + + # Shutdown the pub/sub adapter + @pubsub.shutdown if @pubsub + @pubsub = nil end end |