Fix bug potential in macOS core

This commit is contained in:
Davide Toldo
2020-10-16 18:09:22 +02:00
parent 6f205fbd01
commit 65c63c2055
+2 -1
View File
@@ -241,5 +241,6 @@ class macOSCore(InternalBlue):
def shutdown(self):
if not self.replay:
self.iobe.shutdown()
self.s_inject.sendto(b"", ("127.0.0.1", self.s_snoop.getsockname()[1]))
if self.s_inject is not None:
self.s_inject.sendto(b"", ("127.0.0.1", self.s_snoop.getsockname()[1]))
super(macOSCore, self).shutdown()