Add space between parameters

This commit is contained in:
badaix 2020-10-01 08:51:29 +02:00
parent 57c0c5262a
commit 653f4f29c4

View file

@ -51,6 +51,8 @@ LibrespotStream::LibrespotStream(PcmListener* pcmListener, boost::asio::io_conte
if (username.empty() != password.empty())
throw SnapException("missing parameter \"username\" or \"password\" (must provide both, or neither)");
if (!params_.empty())
params_ += " ";
params_ += "--name \"" + devicename + "\"";
if (!username.empty() && !password.empty())
params_ += " --username \"" + username + "\" --password \"" + password + "\"";