Skip to content

Commit 24c0fd5

Browse files
committed
matrix-connection: only restart once per minute (mark last-sync at each restart)
1 parent a7cfb5b commit 24c0fd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

matrix-connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static gboolean checkSyncRunning(gpointer user_data)
200200
}
201201

202202
if(restart){
203+
clock_gettime(CLOCK_MONOTONIC_RAW, &ma->last_sync);
203204
matrix_connection_cancel_sync(ma->pc);
204205
next_batch = purple_account_get_string(ma->pc->account,
205206
PRPL_ACCOUNT_OPT_NEXT_BATCH, NULL);

0 commit comments

Comments
 (0)