mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
trigger reconnect on socket-connection change
This commit is contained in:
parent
719aadfdfb
commit
fccb95287d
@ -657,6 +657,9 @@ class Client(MPDClient):
|
|||||||
self.lib_path=None
|
self.lib_path=None
|
||||||
self.current_cover=None
|
self.current_cover=None
|
||||||
|
|
||||||
|
# connect
|
||||||
|
self._settings.connect("changed::socket-connection", lambda *args: self.reconnect())
|
||||||
|
|
||||||
# workaround for list group
|
# workaround for list group
|
||||||
# see: https://github.com/Mic92/python-mpd2/pull/187
|
# see: https://github.com/Mic92/python-mpd2/pull/187
|
||||||
def _parse_objects(self, lines, delimiters=[], lookup_delimiter=False):
|
def _parse_objects(self, lines, delimiters=[], lookup_delimiter=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user