Co-authored-by: lgcareer <18610854716@163.com>
@ -119,11 +119,7 @@ public class NettyRemotingServer {
* server start
*/
public void start(){
if(this.isStarted.get()){
return;
}
if (isStarted.compareAndSet(false, true)) {
this.serverBootstrap
.group(this.bossGroup, this.workGroup)
.channel(NioServerSocketChannel.class)
@ -155,8 +151,7 @@ public class NettyRemotingServer {
} else {
throw new RuntimeException(String.format("NettyRemotingServer bind %s fail", serverConfig.getListenPort()));
//
isStarted.compareAndSet(false, true);
/**