Merge pull request #708 from simonbuehler/master
[2.x] Fix unsubscribeFromAllChannels leaving stale connections
This commit is contained in:
commit
3cf74c7a50
|
|
@ -173,7 +173,10 @@ class LocalChannelManager implements ChannelManager
|
|||
|
||||
$this->getLocalChannels($connection->app->id)
|
||||
->then(function ($channels) use ($connection) {
|
||||
collect($channels)->each->unsubscribe($connection);
|
||||
collect($channels)
|
||||
->each(function (Channel $channel) use ($connection) {
|
||||
$channel->unsubscribe($connection);
|
||||
});
|
||||
|
||||
collect($channels)
|
||||
->reject->hasConnections()
|
||||
|
|
|
|||
Loading…
Reference in New Issue