Skip to content

Commit

Permalink
try harder to prevent the race causing a "Warning: Source ID XXXXXX w…
Browse files Browse the repository at this point in the history
…as not found when attempting to remove it self.source_remove(rt)": move the logging after the call

git-svn-id: https://xpra.org/svn/Xpra/trunk@11600 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 6, 2016
1 parent 9529a78 commit d0249f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/server/window/video_subregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def set_auto_refresh_delay(self, d):

def cancel_refresh_timer(self):
rt = self.refresh_timer
refreshlog("cancel_refresh_timer() timer=%s", rt)
if rt:
self.source_remove(rt)
self.refresh_timer = None
self.refresh_regions = []
refreshlog("cancel_refresh_timer() timer=%s", rt)

def get_info(self):
r = self.rectangle
Expand Down

0 comments on commit d0249f3

Please sign in to comment.