修复sncpAsyncGroup未启动的bug

This commit is contained in:
redkale
2023-10-17 15:10:23 +08:00
parent 2155c58989
commit bda65b483e
2 changed files with 7 additions and 0 deletions

View File

@@ -857,6 +857,9 @@ public abstract class NodeServer {
if (interceptor != null) {
interceptor.preStart(this);
}
if (this.sncpAsyncGroup != null) {
this.sncpAsyncGroup.start();
}
server.start();
postStartServer(localServices, remoteServices, servletServices);
}

View File

@@ -1148,6 +1148,10 @@ public final class ByteArray implements ByteTuple {
return new String(content, 0, count);
}
public String toUTF8String() {
return new String(content, 0, count, StandardCharsets.UTF_8);
}
/**
* 按指定字符集转成字符串
*