From 9a89af693b9336633bcac2a652c294f782e6b3b1 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 20 五月 2019 12:54:50 +0800
Subject: [PATCH] add share memory improve effect

---
 nngmake.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/nngmake.go b/nngmake.go
index cdce421..0aff259 100644
--- a/nngmake.go
+++ b/nngmake.go
@@ -14,7 +14,7 @@
 		sock.Close()
 		sock = nil
 	}
-	if n.server {
+	if n.typ == agent {
 		if err = sock.Listen(n.url); err != nil {
 			sock.Close()
 			sock = nil

--
Gitblit v1.8.0