From fc5827a1df8a3c7d194c127eac435df73c95d104 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 12 Mar 2016 19:20:41 +0100 Subject: [PATCH] Actually use PID to stop Syncthing. --- .../nutomic/syncthingandroid/syncthing/SyncthingRunnable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java index ca7c9cc9..d891ef37 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java @@ -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) {