fix connecting not working the second times. A little bit of refactoring
fix connecting not working the second times. A little bit of refactoring

EddyVerbruggen/nativescript-bluetooth,EddyVerbruggen/nativescript-bluetooth