1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-27 06:41:15 +00:00

Merge pull request #383 from syncthing/upstream

Capture IOException when for closed file descriptor (fixes #382)
This commit is contained in:
Zillode 2015-05-05 08:37:50 +02:00
commit e5972dc1e1

View file

@ -222,10 +222,10 @@ public class SyncthingRunnable implements Runnable {
new Thread(new Runnable() { new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
try {
InputStreamReader isr = new InputStreamReader(is); InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr); BufferedReader br = new BufferedReader(isr);
String line; String line;
try {
while ((line = br.readLine()) != null) { while ((line = br.readLine()) != null) {
Log.println(priority, TAG_NATIVE, line); Log.println(priority, TAG_NATIVE, line);
} }