1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-11 04:25:53 +00:00

Actually use PID to stop Syncthing.

This commit is contained in:
Felix Ableitner 2016-03-12 19:20:41 +01:00
parent 91f9231501
commit fc5827a1df

View file

@ -234,6 +234,7 @@ public class SyncthingRunnable implements Runnable {
BufferedReader br = new BufferedReader(isr);
String id;
while ((id = br.readLine()) != null) {
id = id.trim().split("\\s+")[1];
killProcessId(id, i > 0);
}
} catch (IOException | InterruptedException e) {