rename local variable

This commit is contained in:
badaix 2019-10-04 18:31:05 +02:00
parent b2a48663c1
commit ade48cf5e4

View file

@ -505,8 +505,8 @@ void StreamServer::ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcp
<< "\n";
// Find stream
string streamUri_ = request->params().get("streamUri");
PcmStreamPtr stream = streamManager_->addStream(streamUri_);
string streamUri = request->params().get("streamUri");
PcmStreamPtr stream = streamManager_->addStream(streamUri);
if (stream == nullptr)
throw jsonrpcpp::InternalErrorException("Stream not created", request->id());
stream->start(); // We start the stream, otherwise it would be silent