MCPcopy Index your code
hub / github.com/pyload/pyload / wait

Method wait

module/plugins/Plugin.py:274–289  ·  view source on GitHub ↗

waits the time previously set

(self)

Source from the content-addressed store, hash-verified

272 self.pyfile.waitUntil = time() + int(seconds)
273
274 def wait(self):
275 """ waits the time previously set """
276 self.waiting = True
277 self.pyfile.setStatus("waiting")
278
279 while self.pyfile.waitUntil > time():
280 self.thread.m.reconnecting.wait(2)
281
282 if self.pyfile.abort: raise Abort
283 if self.thread.m.reconnecting.isSet():
284 self.waiting = False
285 self.wantReconnect = False
286 raise Reconnect
287
288 self.waiting = False
289 self.pyfile.setStatus("starting")
290
291 def fail(self, reason):
292 """ fail and give reason """

Callers 5

retryMethod · 0.95
tryReconnectMethod · 0.45
do_acquire_read_lockMethod · 0.45
do_acquire_write_lockMethod · 0.45
serveMethod · 0.45

Calls 1

setStatusMethod · 0.80

Tested by

no test coverage detected