(self, promptForAction=False)
| 905 | reactor.run() |
| 906 | |
| 907 | def stop(self, promptForAction=False): |
| 908 | if not self._running: |
| 909 | return |
| 910 | self._running = False |
| 911 | self.destroyProtocol() |
| 912 | if self._player: |
| 913 | self._player.drop() |
| 914 | if self.ui: |
| 915 | self.ui.drop() |
| 916 | reactor.callLater(0.1, reactor.stop) |
| 917 | if promptForAction: |
| 918 | self.ui.promptFor(getMessage("enter-to-exit-prompt")) |
| 919 | |
| 920 | def _performRetryStateReset(self): |
| 921 | """ |
no test coverage detected