| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0539a96 commit 1ee4710
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,6 +56,7 @@ def __init__( # pylint: disable=R0917 | |||
| 56 | 56 | ) | |
| 57 | 57 | ||
| 58 | 58 | self.should_read = False | |
| 59 | + self._closing = False | ||
| 59 | 60 | ||
| 60 | 61 | logger.debug("Threads starting") | |
| 61 | 62 | self._want_receive = True | |
@@ -250,6 +251,10 @@ def _sendToRadioImpl(self, toRadio) -> None: | |||
| 250 | 251 | self.should_read = True | |
| 251 | 252 | ||
| 252 | 253 | def close(self) -> None: | |
| 254 | + if self._closing: | ||
| 255 | + return | ||
| 256 | + self._closing = True | ||
| 257 | + | ||
| 253 | 258 | try: | |
| 254 | 259 | MeshInterface.close(self) | |
| 255 | 260 | except Exception as e: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments