Added error checking to functions called from Communication

This commit is contained in:
EricLiu2000
2019-06-13 16:01:35 -04:00
parent a16f2843d8
commit 519e64fb17
12 changed files with 77 additions and 28 deletions
+1 -3
View File
@@ -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() {