Skip to content

Commit 293d2d4

Browse files
authored
fix do not close socket output correctly
1 parent 99b8330 commit 293d2d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/danikula/videocache/HttpProxyCacheServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private void closeSocketInput(Socket socket) {
299299

300300
private void closeSocketOutput(Socket socket) {
301301
try {
302-
if (socket.isOutputShutdown()) {
302+
if (!socket.isOutputShutdown()) {
303303
socket.shutdownOutput();
304304
}
305305
} catch (IOException e) {

0 commit comments

Comments
 (0)