Browse Source

fixed close()

Nicolas Cannasse 13 years ago
parent
commit
11c9c4dfe5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/cpp/_std/sys/net/Socket.hx

+ 2 - 0
std/cpp/_std/sys/net/Socket.hx

@@ -138,6 +138,8 @@ class Socket {
 	public function close() : Void {
 	public function close() : Void {
 		socket_close(__s);
 		socket_close(__s);
 		untyped {
 		untyped {
+			var input : SocketInput = cast input;
+			var output : SocketOutput = cast output;
 			input.__s = null;
 			input.__s = null;
 			output.__s = null;
 			output.__s = null;
 		}
 		}