From 5c34257ee08571100e6f62346209e179bd7d1ade Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 1 Jul 2012 04:00:27 +0000 Subject: [PATCH] (trunk libT) #4943 "tr_sessionClearStats() does not set the stats' dirty flag to true s.t. stats.json gets saved" --- libtransmission/stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransmission/stats.c b/libtransmission/stats.c index e688acde9..9b1c5155e 100644 --- a/libtransmission/stats.c +++ b/libtransmission/stats.c @@ -210,6 +210,7 @@ tr_sessionClearStats( tr_session * session ) zero.sessionCount = 0; zero.secondsActive = 0; + session->sessionStats->isDirty = true; session->sessionStats->single = session->sessionStats->old = zero; session->sessionStats->startTime = tr_time( ); } -- 2.40.0