jahschwa / sibyl

a python chatbot with a focus on XBMC
GNU General Public License v3.0
7 stars 6 forks source link

matrix: weird thread joining thing #69

Open jahschwa opened 5 years ago

jahschwa commented 5 years ago

Got this trying to !reboot seems weird, might just need a try/catch:

2019-05-14 21:41:03 | sibylbot | CRI | Reboot via chat_ctrl
2019-05-14 21:41:03 | matrix   | DEB | Handling m.text: [ schwa ] #reboot
2019-05-14 21:41:03 | xmpp     | DEB | Parted room "room@conference.domain.com"
[user@box:~/.../sibyl] ./run.py 
Traceback (most recent call last):
  File "./run.py", line 86, in <module>
    main()
  File "./run.py", line 65, in main
    reboot = bot.run_forever()
  File "/home/user/src/sibyl/pr/sibyl/lib/sibylbot.py", line 1227, in run_forever
    proto.shutdown()
  File "protocols/sibyl_socket.py", line 380, in shutdown
    self.thread.join()
  File "/usr/lib/python2.7/threading.py", line 929, in join
    raise RuntimeError("cannot join thread before it is started")
RuntimeError: cannot join thread before it is started