Browse Source

Fix cpp sys.net.Socket

Pascal Peridont 9 năm trước cách đây
mục cha
commit
d6820875ae
2 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 1
      std/cpp/_std/sys/net/Socket.hx
  2. 0 1
      std/cpp/_std/sys/ssl/Socket.hx

+ 1 - 1
std/cpp/_std/sys/net/Socket.hx

@@ -124,7 +124,7 @@ class Socket {
 	}
 
 	private function init() : Void {
-		if( __s != null )__s = NativeSocket.socket_new(false);
+		if( __s == null )__s = NativeSocket.socket_new(false);
 		input = new SocketInput(__s);
 		output = new SocketOutput(__s);
 	}

+ 0 - 1
std/cpp/_std/sys/ssl/Socket.hx

@@ -240,7 +240,6 @@ class Socket extends sys.net.Socket {
 
 		if ( altSNIContexts != null ) {
 			sniCallback = function(servername) {
-				trace("SNI haxe function called with name="+servername);
 				var servername = new String(cast servername);
 				for( c in altSNIContexts ){
 					if( c.match(servername) )