Răsfoiți Sursa

allow multiple close.

Nicolas Cannasse 19 ani în urmă
părinte
comite
8915a3a215
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      std/neko/io/Output.hx

+ 2 - 1
std/neko/io/Output.hx

@@ -52,7 +52,8 @@ class Output {
 	public function close() {
 		write = function(_,_,_) { return throw Error.Closed; };
 		writeChar = function(_) { throw Error.Closed; };
-		flush = close = function() { throw Error.Closed; };
+		flush = function() { throw Error.Closed; };
+		close = function() { };
 	}
 
 	/* ------------------ API ------------------ */