Finished adding error checking

This commit is contained in:
EricLiu2000
2019-06-13 16:01:35 -04:00
parent 255e1e2b90
commit b7288edd9a
6 changed files with 65 additions and 99 deletions
+3 -1
View File
@@ -204,7 +204,9 @@ bool Device::close() {
internalHandlerCallbackID = 0;
goOffline();
if(isOnline())
goOffline();
return com->close();
}