Skip to content

Commit b94e829

Browse files
authored
Merge pull request danikula#85 from Hsiny/Hsiny-patch-1
fix do not close socket output correctly
2 parents 99b8330 + 293d2d4 commit b94e829

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)