You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/04/16 01:15:33 UTC

[incubator-iotdb] 01/01: close thrift ocne again

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch disable_mqtt_server
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 365c82e6996844bd07fbc9f5bd2d90bcf07fdc61
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Thu Apr 16 09:13:14 2020 +0800

    close thrift ocne again
---
 server/src/main/java/org/apache/iotdb/db/service/RPCService.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/RPCService.java b/server/src/main/java/org/apache/iotdb/db/service/RPCService.java
index bdb6f4d..1782cf9 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/RPCService.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/RPCService.java
@@ -240,6 +240,7 @@ public class RPCService implements RPCServiceMBean, IService {
 
     private synchronized void close() {
       if (poolServer != null) {
+        poolServer.setShouldStop(true);
         poolServer.stop();
         poolServer = null;
       }