summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2024-09-16 10:19:41 +0200
committerSimon Rettberg2024-09-16 10:19:41 +0200
commitab9cc65b5415360e4006b256362230055eed81f8 (patch)
tree868f64beac945631acde5598bc3a3b44ff6e8df2 /src
parent(Re)add log4j2 binding for slf4j (1) (diff)
downloadmaster-sync-shared-ab9cc65b5415360e4006b256362230055eed81f8.tar.gz
master-sync-shared-ab9cc65b5415360e4006b256362230055eed81f8.tar.xz
master-sync-shared-ab9cc65b5415360e4006b256362230055eed81f8.zip
[filserver] Add missing .close in error path
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/openslx/filetransfer/Listener.java1
1 files changed, 1 insertions, 0 deletions
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 );