fix: Закрытие сокета после неудачи

This commit is contained in:
MaXFeeD
2023-12-31 03:03:21 +03:00
parent 9889d7c225
commit 6e14b5b6bb
@@ -48,6 +48,11 @@ public class SocketServer {
DataChannel channel = DataChannelFactory.newDataChannelViaSupportedProtocol(socket, protocol);
if (channel == null) {
try {
socket.close();
} catch (IOException e) {
e.printStackTrace();
}
isRunning = false;
return;
}