diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-03 12:26:02 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-04 23:04:12 +0100 |
commit | c9b3d87eb7ef2ce99f659d7e567fc83629439142 (patch) | |
tree | 9c3632609f0711aa4f555a4de228f3030e728f0e /src/core | |
parent | e405330e04dc344797f00c12cf8fd7f63b17e0e4 (diff) | |
download | irssi-c9b3d87eb7ef2ce99f659d7e567fc83629439142.zip |
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.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/servers.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |