imjournal: rate limiter was destructed too early

Too quick hacking, obviously, one too late, one too early, now
it should fit ;) Thanks to Tomas Heinrich for pointing this out.
This commit is contained in:
Rainer Gerhards 2013-06-17 14:33:14 +02:00
parent 1f6d402d50
commit 3911b41420

View File

@ -604,11 +604,11 @@ ENDwillRun
/* close journal */
BEGINafterRun
CODESTARTafterRun
ratelimitDestruct(ratelimiter);
if (cs.stateFile) { /* can't persist without a state file */
persistJournalState();
}
sd_journal_close(j);
ratelimitDestruct(ratelimiter);
ENDafterRun