这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit a080909

Browse files
committed
Fixed: Handle unexpected socket client disconnects
1 parent df3cb50 commit a080909

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/com/termux/api/SocketListener.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ public static void createSocketListener(Application app) {
223223
out.flush();
224224
}
225225
}
226+
catch (java.io.IOException e) {
227+
Logger.logStackTraceWithMessage(LOG_TAG, "Connection error", e);
228+
}
226229
}
227230
}
228231
catch (Exception e) {

0 commit comments

Comments
 (0)