1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52:06 +01:00

Socks5Proxy: Use CloseableUtil to close server socket

This commit is contained in:
Florian Schmaus 2019-05-18 13:24:05 +02:00
parent ab99f629a3
commit 11ae6d6960

View file

@ -230,12 +230,7 @@ public final class Socks5Proxy {
return;
}
try {
this.serverSocket.close();
}
catch (IOException e) {
// do nothing
}
CloseableUtil.maybeClose(this.serverSocket, LOGGER);
if (this.serverThread != null && this.serverThread.isAlive()) {
try {