My first commit! :D Make sure the same interface isn't closed twice when max_command_list_size is exceeded, and don't abort mpd should the same interface be closed twice somewhere else.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4151 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
66e4379d69
commit
6a2cf38465
@ -136,7 +136,7 @@ void openInterface(Interface * interface, int fd) {
|
||||
}
|
||||
|
||||
void closeInterface(Interface * interface) {
|
||||
assert(interface->open);
|
||||
if (!interface->open) return;
|
||||
|
||||
interface->open = 0;
|
||||
|
||||
@ -254,6 +254,7 @@ static int proccessLineOfInput(Interface * interface) {
|
||||
interface_max_command_list_size)
|
||||
;
|
||||
closeInterface(interface);
|
||||
ret = COMMAND_RETURN_CLOSE;
|
||||
}
|
||||
else {
|
||||
insertInListWithoutKey(interface->commandList,
|
||||
|
Loading…
Reference in New Issue
Block a user