aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-17 17:49:20 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:48 +0100
commit6061ee1af573147e41a0834d1c6628eda2fa2f7c (patch)
tree6c6472d0d18970b9212d393e722ffba5d02ebb73 /NitrokeyManager.cc
parent5650e48b114529075d89dbdde0330901351b8460 (diff)
downloadlibnitrokey-6061ee1af573147e41a0834d1c6628eda2fa2f7c.tar.gz
libnitrokey-6061ee1af573147e41a0834d1c6628eda2fa2f7c.tar.bz2
Rename is_connected to be more specific
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index ac1074b..4fed0a6 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -107,7 +107,7 @@ namespace nitrokey{
bool NitrokeyManager::_disconnect_no_lock() {
//do not use directly without locked mutex,
- //used by is_connected, disconnect
+ //used by could_be_enumerated, disconnect
if (device == nullptr){
return false;
}
@@ -119,7 +119,7 @@ namespace nitrokey{
bool NitrokeyManager::is_connected() throw(){
std::lock_guard<std::mutex> lock(mex_dev_com);
if(device != nullptr){
- auto connected = device->is_connected();
+ auto connected = device->could_be_enumerated();
if(connected){
return true;
} else {