X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=mpd.py;h=7ff17b7b314cf9d519be9a0b0851853ead5ce2ce;hp=cb16701872c5b700bc44620eb415780e7715e64c;hb=ffd41bf4163f6d83e57b857afc2a1cb3276081a5;hpb=461fe7b8248ef8e26f3c6119a70ef8f0336d033b diff --git a/mpd.py b/mpd.py index cb16701..7ff17b7 100644 --- a/mpd.py +++ b/mpd.py @@ -389,6 +389,11 @@ class MPDClient(object): self._sock.close() self._reset() + def fileno(self): + if not self._sock: + raise ConnectionError("Not connected") + return self._sock.fileno() + def command_list_ok_begin(self): if self._command_list is not None: raise CommandListError("Already in command list")