From 92d5657e216ae5b60713624b7b53843878d00f10 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 11 Jan 2021 16:43:53 +0000 Subject: [PATCH] protocol: Avoid Tk event_generate() calls during shutdown --- protocol.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocol.py b/protocol.py index 49345643..ea7bfaf6 100644 --- a/protocol.py +++ b/protocol.py @@ -32,7 +32,9 @@ class GenericProtocolHandler(object): def event(self, url): self.lastpayload = url - self.master.event_generate('<>', when="tail") + + if not config.shutting_down(): + self.master.event_generate('<>', when="tail") if sys.platform == 'darwin' and getattr(sys, 'frozen', False):