diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-08-18 16:46:41 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-08-18 16:46:41 +0000 |
commit | fd38efdf86ded4cde5ce7af603413d8b52d22195 (patch) | |
tree | df008f740161bf4f987275965b20f413c46e2b5b /src/interface.c | |
parent | dee9ab5ecde5161c0ffbd7d849cbe337a8a20084 (diff) | |
download | mpd-fd38efdf86ded4cde5ce7af603413d8b52d22195.tar.gz mpd-fd38efdf86ded4cde5ce7af603413d8b52d22195.tar.xz mpd-fd38efdf86ded4cde5ce7af603413d8b52d22195.zip |
attempt to fix an issue discoverred by jat with sending two close commands back to back will cause an assert to fail
git-svn-id: https://svn.musicpd.org/mpd/trunk@3442 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index e7be3a71d..98943a0e6 100644 --- a/src/interface.c +++ b/src/interface.c @@ -319,6 +319,11 @@ static int processBytesRead(Interface * interface, int bytesRead) { interface->bufferLength); interface->bufferPos = 0; } + if(ret == COMMAND_RETURN_KILL || ret == COMMAND_RETURN_CLOSE) + { + break; + } + } return ret; |