Commit fd38efdf authored by Warren Dukes's avatar Warren Dukes

attempt to fix an issue discoverred by jat with sending two close commands back…

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
parent dee9ab5e
...@@ -319,6 +319,11 @@ static int processBytesRead(Interface * interface, int bytesRead) { ...@@ -319,6 +319,11 @@ static int processBytesRead(Interface * interface, int bytesRead) {
interface->bufferLength); interface->bufferLength);
interface->bufferPos = 0; interface->bufferPos = 0;
} }
if(ret == COMMAND_RETURN_KILL || ret == COMMAND_RETURN_CLOSE)
{
break;
}
} }
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment