mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
When closing autologs, don't crash if some other temporary log is open, like
awaylog. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1424 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4d29260e09
commit
3f0498eb20
@ -340,10 +340,13 @@ static void sig_server_disconnected(SERVER_REC *server)
|
||||
|
||||
for (tmp = logs; tmp != NULL; tmp = next) {
|
||||
LOG_REC *log = tmp->data;
|
||||
next = tmp->next;
|
||||
next = tmp->next;
|
||||
|
||||
logitem = log->items == NULL ? NULL : log->items->data;
|
||||
if (log->temp && logitem->type == LOG_ITEM_TARGET &&
|
||||
if (log->temp || log->items == NULL)
|
||||
continue;
|
||||
|
||||
logitem = log->items->data;
|
||||
if (logitem->type == LOG_ITEM_TARGET &&
|
||||
g_strcasecmp(logitem->servertag, server->tag) == 0)
|
||||
log_close(log);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user