do not write the trailing nul char in send_commands
That triggered creation of a new client, followed by it's immediate destruction due to the connection closing.
This commit is contained in:
parent
0bc57e43d2
commit
b677f9da63
|
@ -467,7 +467,7 @@ void send_command(const String& session, const String& command)
|
|||
|
||||
{
|
||||
Message msg(sock);
|
||||
msg.write(command.c_str(), (int)command.length()+1);
|
||||
msg.write(command.c_str(), (int)command.length());
|
||||
}
|
||||
close(sock);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user