From ed46d1211566abcc91631b025eccaab1238434cc Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 20 Sep 2019 10:00:57 +0200 Subject: [PATCH] close correct socket after faulty jingle socks connection --- .../siacs/conversations/xmpp/jingle/JingleSocks5Transport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java index 41aa75ad9..be72d9327 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java @@ -142,7 +142,7 @@ public class JingleSocks5Transport extends JingleTransport { this.isEstablished = true; FileBackend.close(serverSocket); } else { - this.socket.close(); + FileBackend.close(socket); } } else { socket.close();