From c9b3d87eb7ef2ce99f659d7e567fc83629439142 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Wed, 3 Jan 2018 12:26:02 +0100 Subject: Postpone server cleanup until after unref Add a new signal, server destroyed, that is supposed to run the clean up tasks of server disconnected. This is so that some structures will stay around longer. --- src/core/servers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/servers.c') diff --git a/src/core/servers.c b/src/core/servers.c index b9faab81..b1da9b7e 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -524,6 +524,7 @@ int server_unref(SERVER_REC *server) return TRUE; } + signal_emit("server destroyed", 1, server); MODULE_DATA_DEINIT(server); server_connect_unref(server->connrec); if (server->rawlog != NULL) rawlog_destroy(server->rawlog); -- cgit v1.2.3