diff options
Diffstat (limited to 'src/mgr/MgrClient.cc')
-rw-r--r-- | src/mgr/MgrClient.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mgr/MgrClient.cc b/src/mgr/MgrClient.cc index 2f558c0614a..45d2707af25 100644 --- a/src/mgr/MgrClient.cc +++ b/src/mgr/MgrClient.cc @@ -59,7 +59,10 @@ void MgrClient::shutdown() command_table.clear(); timer.shutdown(); - session.reset(); + if (session) { + session->con->mark_down(); + session.reset(); + } } bool MgrClient::ms_dispatch(Message *m) |