MCPcopy
hub / github.com/pyload/pyload / activate

Method activate

module/plugins/hooks/UpdateManager.py:40–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 CHECK_INTERVAL = 3 * 60 * 60 #: 3 hours
39
40 def activate(self):
41 if self.checkonstart:
42 self.pyload.api.pauseServer()
43 self.update()
44
45 if self.do_restart is False:
46 self.pyload.api.unpauseServer()
47
48 self.periodical.start(10)
49
50 def init(self):
51 self.info.update({

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
pauseServerMethod · 0.45
unpauseServerMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected