Skip to content

Commit

Permalink
Refresh timestamp after reactivating devices
Browse files Browse the repository at this point in the history
  • Loading branch information
ollpu committed Dec 31, 2021
1 parent a391299 commit d55bdca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/daemon/usb_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ void* suspend_check() {
if (prev_suspend_check_time + 4 < current_time) {
graceful_suspend_resume();
reactivate_devices();
// Some time might have passed, get a fresh timestamp so other
// threads can continue
current_time = get_clock_monotonic_seconds();
}

pthread_mutex_lock(&suspend_check_mutex);
Expand Down

0 comments on commit d55bdca

Please sign in to comment.