]> kaliko git repositories - python-musicpd.git/commit
mpd.py: raise ConnectionError when trying to use an unconnected socket
authorJ. Alexander Treuman <jat@spatialrift.net>
Sun, 23 Mar 2008 19:50:48 +0000 (15:50 -0400)
committerJ. Alexander Treuman <jat@spatialrift.net>
Sun, 23 Mar 2008 19:50:48 +0000 (15:50 -0400)
commit11ad737dbfa521db07486a6cb789d3539a5ec4c0
treeb26678aaf2952c904d543ebe020f6bb2bafda671
parentf1fcd2f66be232186ce0947b401fef2653aa550b
mpd.py: raise ConnectionError when trying to use an unconnected socket

ConnectionError will now be raised when trying to read from/write to a
socket before calling connect() or after calling disconnect().  In the past
it would try to complete the operation on the unconnected socket, resulting
in a socket.error exception.
mpd.py