tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.09k stars 2.23k forks source link

Im getting these errors on a regular basis #839

Open IamC8 opened 9 years ago

IamC8 commented 9 years ago

I have an echo client running which throws the following errors every so often:

Exception in thread YowPingThread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner File "/root/Dropbox/myCloud/yowsup-master/yowsup/layers/protocol_iq/layer.py", line 86, in run <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'sleep'

Where should I look? Regards

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

jodersus commented 9 years ago

+1

Same problem. I've noticed it happens when Whatsapp closes the connection, typically after not receiving a receipt from a notification.

Is it possible to tell the application to re-connect (say after 30 secs) when Whatsapp disconnects? I tried the simplest code but got an infinite loop...

Thanks