mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 08:11:17 +00:00
On exit code 1, kill Syncthing and retry start (ref #865)
This commit is contained in:
parent
1b194d07b1
commit
83e3338517
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@ public class SyncthingRunnable implements Runnable {
|
||||||
case 137:
|
case 137:
|
||||||
// Syncthing was shut down (via API or SIGKILL), do nothing.
|
// Syncthing was shut down (via API or SIGKILL), do nothing.
|
||||||
break;
|
break;
|
||||||
|
case 1:
|
||||||
|
// Syncthing is already running, kill it and try again.
|
||||||
|
killSyncthing();
|
||||||
|
//fallthrough
|
||||||
case 3:
|
case 3:
|
||||||
// Restart was requested via Rest API call.
|
// Restart was requested via Rest API call.
|
||||||
Log.i(TAG, "Restarting syncthing");
|
Log.i(TAG, "Restarting syncthing");
|
||||||
|
|
Loading…
Reference in a new issue