Răsfoiți Sursa

hxd.net.Socket: do not throw not catchable error

Yuxiao Mao 7 luni în urmă
părinte
comite
a982273270
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      hxd/net/Socket.hx

+ 1 - 1
hxd/net/Socket.hx

@@ -118,7 +118,7 @@ class Socket {
 			onConnect(s);
 			onConnect(s);
 		}).on('error', function(e) {
 		}).on('error', function(e) {
 			close();
 			close();
-			throw e;
+			onError(e);
 		}).listen(port, host, listenCount);
 		}).listen(port, host, listenCount);
 		#else
 		#else
 		throw "Not implemented";
 		throw "Not implemented";