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) {