libicsneoc: Resolve DeviceCurrentlyClosed errors

This commit is contained in:
David Rebbe
2022-11-03 23:46:14 +00:00
parent 4c0d49f09a
commit 5ff1707c47
4 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -78,7 +78,8 @@ bool Device::SerialStringIsNumeric(const std::string& serial) {
Device::~Device() {
if(isMessagePollingEnabled())
disableMessagePolling();
close();
if(isOpen())
close();
}
uint16_t Device::getTimestampResolution() const {