Skip to content

Commit

Permalink
matrix-connection: only restart once per minute (mark last-sync at ea…
Browse files Browse the repository at this point in the history
…ch restart)
  • Loading branch information
teleshoes committed Oct 4, 2019
1 parent d56ff67 commit aa52755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions matrix-connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ static gboolean checkSyncRunning(gpointer user_data)
}

if(restart){
clock_gettime(CLOCK_MONOTONIC_RAW, &ma->last_sync);
matrix_connection_cancel_sync(ma->pc);
next_batch = purple_account_get_string(ma->pc->account,
PRPL_ACCOUNT_OPT_NEXT_BATCH, NULL);
Expand Down

0 comments on commit aa52755

Please sign in to comment.