removed unneeded disconnect

This commit is contained in:
Martin Wagner 2020-07-15 22:29:38 +02:00
parent 495634c254
commit fc06d84a5b

View File

@ -888,10 +888,6 @@ class Client(MPDClient):
self.last_status=status
except MPDBase.ConnectionError:
self.last_status={}
try:
self.disconnect()
except:
pass
self.emitter.emit("disconnected")
if self.disconnected_loop():
self.disconnected_timeout_id=GLib.timeout_add(1000, self.disconnected_loop)