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
This commit is contained in:
Warren Dukes
2005-08-18 16:46:41 +00:00
parent dee9ab5ecd
commit fd38efdf86
2 changed files with 5 additions and 503 deletions

View File

@@ -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;