aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-08-18 16:46:41 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-08-18 16:46:41 +0000
commitfd38efdf86ded4cde5ce7af603413d8b52d22195 (patch)
treedf008f740161bf4f987275965b20f413c46e2b5b /src/interface.c
parentdee9ab5ecde5161c0ffbd7d849cbe337a8a20084 (diff)
downloadmpd-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.c5
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;