(self)
| 68 | self.pyload.api.restart() |
| 69 | |
| 70 | def periodical_task(self): |
| 71 | if self.pyload.debug: |
| 72 | if self.config.get('reloadplugins'): |
| 73 | self.autoreload_plugins() |
| 74 | |
| 75 | if self.config.get('nodebugupdate'): |
| 76 | return |
| 77 | |
| 78 | if self.config.get('checkperiod') and \ |
| 79 | time.time() - max(self.CHECK_INTERVAL, self.config.get('checkinterval') * 60 * 60) > self.info['last_check']: |
| 80 | self.update() |
| 81 | |
| 82 | if self.do_restart is True: |
| 83 | if self.pyload.threadManager.pause and not self.pyload.api.statusDownloads(): |
| 84 | self.pyload.api.restart() |
| 85 | |
| 86 | #: Deprecated method, use `autoreload_plugins` instead |
| 87 | @Expose |
nothing calls this directly
no test coverage detected