RS disconnect synchronized
This commit is contained in:
parent
49e8a0b7c4
commit
90729cffe6
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ public class BLEComm {
|
||||||
isConnecting = false;
|
isConnecting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disconnect(String from) {
|
public synchronized void disconnect(String from) {
|
||||||
log.debug("disconnect from: " + from);
|
log.debug("disconnect from: " + from);
|
||||||
|
|
||||||
// cancel previous scheduled disconnection to prevent closing upcomming connection
|
// cancel previous scheduled disconnection to prevent closing upcomming connection
|
||||||
|
|
Loading…
Reference in a new issue