b00c4f24ec
- UPnP and outgoingSynSender threads close slightly better. - extPort initialisation was missing
10 lines
228 B
Python
10 lines
228 B
Python
import threading
|
|
|
|
class StoppableThread(object):
|
|
def initStop(self):
|
|
self.stop = threading.Event()
|
|
self._stopped = False
|
|
|
|
def stopThread(self):
|
|
self._stopped = True
|
|
self.stop.set() |