mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +00:00
Capture IOException when for closed file descriptor (fixes #382)
This commit is contained in:
parent
cdffed64af
commit
9d4ede5aff
1 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||||
InputStreamReader isr = new InputStreamReader(is);
|
|
||||||
BufferedReader br = new BufferedReader(isr);
|
|
||||||
String line;
|
|
||||||
try {
|
try {
|
||||||
|
InputStreamReader isr = new InputStreamReader(is);
|
||||||
|
BufferedReader br = new BufferedReader(isr);
|
||||||
|
String line;
|
||||||
while ((line = br.readLine()) != null) {
|
while ((line = br.readLine()) != null) {
|
||||||
Log.println(priority, TAG_NATIVE, line);
|
Log.println(priority, TAG_NATIVE, line);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue