remove old handler if it was set
This commit is contained in:
parent
e2b09f9e42
commit
1c1ea14b3c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue