mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1211 from ailin-nemui/disco_lastmsg
fix crash when server got disconnected/reconnected before it was properly connected
This commit is contained in:
commit
cd10745711
@ -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