From ab9cc65b5415360e4006b256362230055eed81f8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 16 Sep 2024 10:19:41 +0200 Subject: [filserver] Add missing .close in error path --- src/main/java/org/openslx/filetransfer/Listener.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/java/org/openslx/filetransfer/Listener.java b/src/main/java/org/openslx/filetransfer/Listener.java index fc990fc..93d2a76 100644 --- a/src/main/java/org/openslx/filetransfer/Listener.java +++ b/src/main/java/org/openslx/filetransfer/Listener.java @@ -146,6 +146,7 @@ public class Listener log.warn( "SSL error when acceping client " + connection.getInetAddress().getHostAddress() ); } catch ( SocketException e ) { // No reason to log, probably - connection where client did nothing after connecting. + Transfer.safeClose( connection ); } catch ( Exception e ) { Transfer.safeClose( connection ); log.warn( "Error handling client", e ); -- cgit v1.2.3-55-g7522