Commit 39c1873d072d40e8c38712562ee2961c40f4d1ab
1 parent
80cad8fe
Deal with empty session for early client disconnect
Showing
2 changed files
with
4 additions
and
1 deletions
client.cpp
subscriptionstore.cpp
| ... | ... | @@ -634,6 +634,9 @@ void SubscriptionStore::removeExpiredSessionsClients() |
| 634 | 634 | |
| 635 | 635 | void SubscriptionStore::queueSessionRemoval(const std::shared_ptr<Session> &session) |
| 636 | 636 | { |
| 637 | + if (!session) | |
| 638 | + return; | |
| 639 | + | |
| 637 | 640 | QueuedSessionRemoval qsr(session); |
| 638 | 641 | |
| 639 | 642 | auto comp = [](const QueuedSessionRemoval &a, const QueuedSessionRemoval &b) | ... | ... |