Skip to content

Commit 4f688fc

Browse files
committed
Ignore SocketException
refs #19
1 parent 35e1f5b commit 4f688fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

webcam-capture/src/main/java/com/github/sarxos/webcam/WebcamStreamer.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ public void run() {
148148
try {
149149
bos.flush();
150150
} catch (SocketException e) {
151-
if (!socket.isClosed()) {
152-
throw e;
153-
}
151+
// ignore, user closed stream
154152
}
155153

156154
Thread.sleep(getDelay());

0 commit comments

Comments
 (0)