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:
parent
91f9231501
commit
fc5827a1df
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue