waits the time previously set
(self)
| 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 """ |
no test coverage detected