merge and fix bug in audio-stream-stop

This commit is contained in:
Simon Morlat 2014-05-19 16:22:59 +02:00
parent 3226ff4510
commit 441c5192be

View file

@ -19,8 +19,8 @@ void AudioStreamStopCommand::exec(Daemon *app, const char *args) {
app->sendResponse(Response("No Audio Stream with such id."));
return;
}
audio_stream_stop(stream);
app->removeAudioStream(id);
audio_stream_stop(stream);
app->sendResponse(Response());
} else {
app->sendResponse(Response("Missing/Incorrect parameter(s)."));