Fix: Unexpected behaviour for CommandAction #81

add last line before dispatching response.
Fix for issue  #81
This commit is contained in:
Aldracor 2016-12-29 16:04:17 +02:00 committed by GitHub
parent 714482d903
commit 18a445e3c4

View file

@ -272,17 +272,18 @@ namespace AsterNET.Manager
if (processingCommandResult)
{
if (line == "--END COMMAND--")
string lineLower = line.ToLower(Helper.CultureInfo);
if (lineLower == "--end command--")
{
var commandResponse = new CommandResponse();
Helper.SetAttributes(commandResponse, packet);
commandList.Add(line);
commandResponse.Result = commandList;
processingCommandResult = false;
packet.Clear();
mrConnector.DispatchResponse(commandResponse);
}
string lineLower = line.ToLower(Helper.CultureInfo);
if (lineLower.StartsWith("privilege: ")
else if (lineLower.StartsWith("privilege: ")
|| lineLower.StartsWith("actionid: ")
|| lineLower.StartsWith("timestamp: ")
|| lineLower.StartsWith("server: ")
@ -360,4 +361,4 @@ namespace AsterNET.Manager
#endregion
}
}
}