RS disconnect synchronized

This commit is contained in:
Milos Kozak 2018-07-23 16:17:17 +02:00
parent 49e8a0b7c4
commit 90729cffe6

View file

@ -151,7 +151,7 @@ public class BLEComm {
isConnecting = false;
}
public void disconnect(String from) {
public synchronized void disconnect(String from) {
log.debug("disconnect from: " + from);
// cancel previous scheduled disconnection to prevent closing upcomming connection