(self)
| 95 | self.start() |
| 96 | |
| 97 | def run(self): |
| 98 | self.log_debug('def run') |
| 99 | try: |
| 100 | if self.xmpp.connect(): |
| 101 | self.xmpp.process(block=False) |
| 102 | self.log_info('Done') |
| 103 | # self.periodical.start(30) |
| 104 | |
| 105 | else: |
| 106 | self.log_error("Unable to connect.") |
| 107 | |
| 108 | except Exception as e: |
| 109 | self.log_error(e, trace=True) |
| 110 | |
| 111 | ############################################################################ |
| 112 | ## xmpp handler |