Skip to content

Commit 1cd3a29

Browse files
committed
updated InputStreamThread.java
1 parent 97be9b9 commit 1cd3a29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/de/javasocketapi/core/InputStreamThread.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ public void run() {
7373
//close socket
7474
socket.close();
7575
}
76-
} catch (IOException | InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
76+
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
7777
e.printStackTrace();
78+
} catch (IOException e) {
79+
interrupt();
7880
}
7981
}
8082
}, 0, 1);

0 commit comments

Comments
 (0)