Skip to content

Commit

Permalink
main: Stop capture retry timer when detaching
Browse files Browse the repository at this point in the history
  • Loading branch information
any1 committed Nov 14, 2024
1 parent 5a4da50 commit f9a384a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,10 @@ static void wayland_detach(struct wayvnc* self)
ext_image_copy_capture_manager_v1_destroy(ext_image_copy_capture_manager);
ext_image_copy_capture_manager = NULL;

if (self->capture_retry_timer)
if (self->capture_retry_timer) {
aml_stop(aml_get_default(), self->capture_retry_timer);
aml_unref(self->capture_retry_timer);
}
self->capture_retry_timer = NULL;

if (self->transient_seat_manager)
Expand Down

0 comments on commit f9a384a

Please sign in to comment.