mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-09 23:26:47 +02:00
Add space between parameters
This commit is contained in:
parent
57c0c5262a
commit
653f4f29c4
1 changed files with 2 additions and 0 deletions
|
@ -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 + "\"";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue