Skip to content

Commit

Permalink
fixed a bug in connection manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Slinger360 committed Jan 19, 2020
1 parent c058141 commit 40ba804
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions nbclient.py
Expand Up @@ -63,11 +63,15 @@ def connect(self):
self._connect_inner(link)
time.sleep(3)
if self.link == 'ble':
if self._link.device:
if link.device:
self.update_state('connected')
else:
print('BLE not connected')
elif self.link == 'tcp':
if self._link.connected:
if link.connected:
self.update_state('connected')
else:
print('Socket not connected')
else:
self.update_state('connected')
elif link == None:
Expand Down
2 changes: 1 addition & 1 deletion packaging/buildozer.spec
Expand Up @@ -28,7 +28,7 @@ source.include_patterns = assets/*,images/*
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 1.16
version = 1.17

# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
Expand Down

0 comments on commit 40ba804

Please sign in to comment.