mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-17 21:56:07 -04:00
Improved stream reconnection
This commit is contained in:
@@ -27,7 +27,9 @@ def stream_threaded(func, *args, **kwargs):
|
||||
try:
|
||||
func(**k)
|
||||
except:
|
||||
pub.sendMessage("streamError", session=a[0])
|
||||
log.error("Error in stream with args: %r" % (a,))
|
||||
pub.sendMessage("stream-error", session=a[0])
|
||||
|
||||
thread = threading.Thread(target=new_func, args=args, kwargs=kwargs)
|
||||
thread.daemon = True
|
||||
thread.start()
|
||||
|
Reference in New Issue
Block a user