From 981ca0fa022524fd04af988bc798f2d697d31548 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 19 五月 2021 14:33:10 +0800
Subject: [PATCH] hide .so symbols, avoid 2+ protobuf link conflict.

---
 box/center.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/box/center.cpp b/box/center.cpp
index c5644b3..9ecd04b 100644
--- a/box/center.cpp
+++ b/box/center.cpp
@@ -822,7 +822,8 @@
 		}
 	};
 
-	auto center_ptr = std::make_shared<Synced<NodeCenter>>("#bhome_center", gc, 6s, 6s * 2);
+	auto nsec = seconds(NodeTimeoutSec());
+	auto center_ptr = std::make_shared<Synced<NodeCenter>>("#bhome_center", gc, nsec, nsec * 3); // *3 to allow other clients to finish sending msgs.
 	AddCenter(center_ptr);
 
 	for (auto &kv : Centers()) {

--
Gitblit v1.8.0