def startService(self):
service.Service.startService(self)
self._connector = self._connectMethod(*self._args, factory=self._factory, **self._kwargs)
def waitForConnect():
if self._connector.state == 'connected':
log.msg('Starting child services now.', level=logging.DEBUG)
# noinspection PyTypeChecker
for svc in self:
svc.startService()
else:
from twisted.internet import reactor
task.deferLater(reactor, 1, waitForConnect)
waitForConnect()
评论列表
文章目录