Defensive coding improvements

This commit is contained in:
Ian Renton
2026-08-22 08:08:27 +01:00
parent 6f21ac83b7
commit f346444ec3
10 changed files with 19 additions and 17 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ class RBN(SpotProvider):
def stop(self):
self._running = False
self._telnet.close()
if self._telnet:
self._telnet.close()
self._thread.join()
def _handle(self):