mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
fix crash when server got disconnected/reconnected before it was properly connected
This commit is contained in:
parent
40ed4122b1
commit
4e9dab4aeb
@ -1195,6 +1195,9 @@ static void sig_server_disconnected(SERVER_REC *server)
|
||||
g_return_if_fail(server != NULL);
|
||||
|
||||
mserver = MODULE_DATA(server);
|
||||
if (mserver == NULL)
|
||||
return;
|
||||
|
||||
while (mserver->lastmsgs)
|
||||
last_msg_destroy(&mserver->lastmsgs, mserver->lastmsgs->data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user