From 0d0985af9d7c6822fd64c169b6f39a34df62c521 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 7 Sep 2018 20:45:42 +0200 Subject: [PATCH] remove sockets if fenrir stops --- src/fenrirscreenreader/core/remoteManager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fenrirscreenreader/core/remoteManager.py b/src/fenrirscreenreader/core/remoteManager.py index c7dc6fb7..72b71763 100644 --- a/src/fenrirscreenreader/core/remoteManager.py +++ b/src/fenrirscreenreader/core/remoteManager.py @@ -91,6 +91,9 @@ class remoteManager(): except: pass client_sock.close() + + if os.path.exists(socketpath): + os.remove(socketpath) if self.sock: self.sock.close() self.sock = None