client should clean up

This commit is contained in:
Eric Mertens 2025-02-06 20:52:42 -08:00
parent 847a149e12
commit 44ef4c0689

View File

@ -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;
}