1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Log syncthing restarts.

This commit is contained in:
Felix Ableitner 2014-11-17 15:09:21 +02:00
parent 37044eea4c
commit 201bc9ecae

View file

@ -67,6 +67,10 @@ public class SyncthingRunnable implements Runnable {
log(process.getErrorStream(), Log.WARN);
ret = process.waitFor();
if (ret == 3) {
Log.i(TAG, "Restarting syncthing");
}
} while (ret == 3);
} catch (IOException | InterruptedException e) {
Log.e(TAG, "Failed to execute syncthing binary or read output", e);