mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Clean up job renaming
This commit is contained in:
@@ -386,8 +386,9 @@ public:
|
||||
{
|
||||
if (jvRequest.isMember ("command"))
|
||||
{
|
||||
std::string cmd = jvRequest["command"].asString ();
|
||||
job.rename (std::string ("WSClient::") + cmd);
|
||||
Json::Value& jCmd = jvRequest["command"];
|
||||
if (jCmd.isString())
|
||||
job.rename (std::string ("WSClient::") + jCmd.asString());
|
||||
}
|
||||
|
||||
send (cpClient, conn->invokeCommand (jvRequest), false);
|
||||
|
||||
Reference in New Issue
Block a user