mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
moved "log rotate" after the logging was stopped.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1561 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4ad8ebba7e
commit
b642a0e16f
@ -175,8 +175,8 @@ static void log_rotate_check(LOG_REC *log)
|
||||
new_fname = log_filename(log);
|
||||
if (strcmp(new_fname, log->real_fname) != 0) {
|
||||
/* rotate log */
|
||||
signal_emit("log rotate", 1, log);
|
||||
log_stop_logging(log);
|
||||
signal_emit("log rotate", 1, log);
|
||||
log_start_logging(log);
|
||||
}
|
||||
g_free(new_fname);
|
||||
|
Loading…
Reference in New Issue
Block a user