mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Socks5Proxy: Use CloseableUtil to close server socket
This commit is contained in:
parent
ab99f629a3
commit
11ae6d6960
1 changed files with 1 additions and 6 deletions
|
@ -230,12 +230,7 @@ public final class Socks5Proxy {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
CloseableUtil.maybeClose(this.serverSocket, LOGGER);
|
||||||
this.serverSocket.close();
|
|
||||||
}
|
|
||||||
catch (IOException e) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.serverThread != null && this.serverThread.isAlive()) {
|
if (this.serverThread != null && this.serverThread.isAlive()) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue