Made it so that only canceling the printe causes it to be marked as canceled

Disconnect and reconnect do not 'cancel' the print
Closing MC does not 'cancel' the print
This commit is contained in:
Lars Brubaker 2016-12-01 10:59:03 -08:00
parent 4b07153554
commit fb1f5ff730
3 changed files with 23 additions and 21 deletions

View file

@ -152,6 +152,10 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
while (internalStream.FileStreaming.PercentComplete(internalStream.LineIndex) < percentDone)
{
string line = internalStream.ReadLine();
if(line == null)
{
break;
}
commandCount++;
// make sure we don't parse comments