Merge pull request #1303 from IanCao/master
close stream safety & format code
This commit is contained in:
commit
403e9b830a
@ -93,13 +93,9 @@ public class PushService {
|
||||
try {
|
||||
udpSocket = new DatagramSocket();
|
||||
|
||||
Receiver receiver;
|
||||
Receiver receiver = new Receiver();
|
||||
|
||||
Thread inThread;
|
||||
|
||||
receiver = new Receiver();
|
||||
|
||||
inThread = new Thread(receiver);
|
||||
Thread inThread = new Thread(receiver);
|
||||
inThread.setDaemon(true);
|
||||
inThread.setName("com.alibaba.nacos.naming.push.receiver");
|
||||
inThread.start();
|
||||
|
Loading…
Reference in New Issue
Block a user