Explorar o código

allow multiple close.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
8915a3a215
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 ------------------ */