diff --git a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index 761d8aa312..1afbac3b9f 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -60,6 +60,8 @@ public class RuffyScripter { public void start(IRuffyService newService) { try { + if(ruffyService!=null) + try{ruffyService.removeHandler(mHandler);}catch(Exception e){}; if(newService!=null) { this.ruffyService = newService; // TODO this'll be done better in v2 via ConnectionManager