Esempio n. 1
0
 def done(_):
    log.flush()
    log.close()
    for c in config.components:
       c.leave()
    from twisted.internet import reactor
    reactor.callLater(1, reactor.stop)
Esempio n. 2
0
 def done(res):
     log.flush()
     log.close()
     for c in config.components:
         c.leave()
     from twisted.internet import reactor
     reactor.callLater(1, reactor.stop)
Esempio n. 3
0
 def done(res):
    print "DOne"
    log.flush()
    log.close()
    if config.port:
       config.port.stopListening()
    if config.connected_clients:
       for proto in config.connected_clients:
          proto.transport.abortConnection()
Esempio n. 4
0
 def done(res):
     log.flush()
     log.close()
     if config.port:
         config.port.stopListening()
     if config.connected_clients:
         for proto in config.connected_clients:
             proto.transport.abortConnection()
     print("Log length: {}".format(len(config.dlog)))
     print(config.dlog)
Esempio n. 5
0
 def done(res):
    log.flush()
    log.close()
    if config.port:
       config.port.stopListening()
    if config.connected_clients:
       for proto in config.connected_clients:
          proto.transport.abortConnection()
    print("Log length: {}".format(len(config.dlog)))
    print(config.dlog)