From 441c5192bed94f60e8af401d5c7108f27d0cfa85 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 19 May 2014 16:22:59 +0200 Subject: [PATCH] merge and fix bug in audio-stream-stop --- daemon/commands/audio-stream-stop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/commands/audio-stream-stop.cc b/daemon/commands/audio-stream-stop.cc index e05fd79f4..97b9ad7fd 100644 --- a/daemon/commands/audio-stream-stop.cc +++ b/daemon/commands/audio-stream-stop.cc @@ -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)."));