client should clean up
This commit is contained in:
parent
847a149e12
commit
44ef4c0689
@ -198,6 +198,13 @@ auto Client::start(std::shared_ptr<Connection> connection) -> std::shared_ptr<Cl
|
||||
}
|
||||
});
|
||||
|
||||
connection->sig_disconnect.connect([thread](auto) {
|
||||
thread->sig_registered.disconnect_all_slots();
|
||||
thread->sig_cap_ls.disconnect_all_slots();
|
||||
thread->sig_chat.disconnect_all_slots();
|
||||
thread->sig_snote.disconnect_all_slots();
|
||||
});
|
||||
|
||||
return thread;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user