Nicolas Cannasse 1 month ago
parent
commit
7d549efbdc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/sys/net/AsyncSocket.hx

+ 1 - 1
std/sys/net/AsyncSocket.hx

@@ -102,7 +102,7 @@ class AsyncSocket {
 	**/
 	**/
 	public dynamic function onWrite( error : Bool ) {
 	public dynamic function onWrite( error : Bool ) {
 		if( error ) {
 		if( error ) {
-			onDisconnected();
+			onDisconnect();
 			close();
 			close();
 		}
 		}
 	}
 	}