浏览代码

minor fix

ncannasse 9 年之前
父节点
当前提交
1c06e95324
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hxd/net/PropInspector.hx

+ 1 - 0
hxd/net/PropInspector.hx

@@ -67,6 +67,7 @@ class PropInspector extends cdb.jq.Client {
 	}
 
 	function connect() {
+		if( sock == null ) return; // was closed
 		sock.close();
 		sock.connect(host, port, function() {
 			connected = true;