def stop(self): app.exit() if not self._enabled: return if self._stopping: return self._stopping = True _threadedselect.ThreadedSelectReactor.stop(self)
def _stopPyglet(self): app.exit()