Small fix to error handling
This commit is contained in:
parent
1a5e1b0fa4
commit
44c2ef32f5
1 changed files with 2 additions and 2 deletions
|
@ -59,14 +59,14 @@ bool LOOLSession::handleInput(char *buffer, int length)
|
|||
{
|
||||
if (_loKitDocument)
|
||||
{
|
||||
app.logger().error("A document is already loaded");
|
||||
sendTextFrame("error: cms=load kind=docalreadyloaded");
|
||||
return false;
|
||||
}
|
||||
loadDocument(tokens);
|
||||
}
|
||||
else if (!_loKitDocument)
|
||||
{
|
||||
sendTextFrame("No document loaded");
|
||||
sendTextFrame("error: cmd=" + tokens[0] + " kind=nodocloaded");
|
||||
return false;
|
||||
}
|
||||
else if (tokens[0] == "status")
|
||||
|
|
Loading…
Reference in a new issue