mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Added error checking to functions called from Communication
This commit is contained in:
+1
-3
@@ -171,7 +171,6 @@ bool Device::open() {
|
||||
handleInternalMessage(message);
|
||||
}));
|
||||
|
||||
opened = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -185,8 +184,7 @@ bool Device::close() {
|
||||
com->removeMessageCallback(internalHandlerCallbackID);
|
||||
|
||||
goOffline();
|
||||
opened = !com->close();
|
||||
return !opened;
|
||||
return com->close();
|
||||
}
|
||||
|
||||
bool Device::goOnline() {
|
||||
|
||||
Reference in New Issue
Block a user