mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed handling of server crash
This commit is contained in:
parent
0daa1ef994
commit
84272d31cc
@ -915,7 +915,8 @@ class Client(MPDClient):
|
||||
self.emitter.emit("update")
|
||||
|
||||
self.last_status=status
|
||||
except MPDBase.ConnectionError:
|
||||
except: # (MPDBase.ConnectionError, ConnectionResetError) as e:
|
||||
self.disconnect()
|
||||
self.last_status={}
|
||||
self.emitter.emit("disconnected")
|
||||
if self.disconnected_loop():
|
||||
|
Loading…
Reference in New Issue
Block a user