changeset 158:45fc760622c9

Fixed WriteFile, now it does not hang if echo is off and format is binary
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 14 Oct 2015 17:55:58 +0100
parents f36313cbb55d
children 1e7db6610600
files core/WriteFile.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/WriteFile.cpp	Tue Oct 13 02:01:05 2015 +0100
+++ b/core/WriteFile.cpp	Wed Oct 14 17:55:58 2015 +0100
@@ -203,7 +203,7 @@
 }
 
 void WriteFile::writeOutput(bool writeAll){
-	while( getOffsetFromPointer(textReadPointer) >= lineLength){ //if there is less than one line worth of data to write, skip over.
+	while((echo == true || fileType == kText) && getOffsetFromPointer(textReadPointer) >= lineLength){ //if there is less than one line worth of data to write, skip over.
 							 	 // So we make sure we only write full lines
 		writeLine();
 	}