From 5e74a99062242db84ea381d7225f0a35630111e3 Mon Sep 17 00:00:00 2001 From: localhorst Date: Tue, 15 Sep 2020 11:11:53 +0200 Subject: [PATCH] detect same drive with serial and path --- src/reHDD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reHDD.cpp b/src/reHDD.cpp index fbc8d96..e1f91bc 100644 --- a/src/reHDD.cpp +++ b/src/reHDD.cpp @@ -237,7 +237,7 @@ void reHDD::filterNewDrives(vector * pvecOldDrives, vector * pvecN itOld->bIsOffline = true; //set offline befor seachring in the new list for (itNew = pvecNewDrives->begin(); itNew != pvecNewDrives->end();) { - if(itOld->getSerial() == itNew->getSerial()) + if((itOld->getSerial() == itNew->getSerial()) || (itOld->getPath() == itNew->getPath())) { itOld->bIsOffline = false; //drive is still attached #ifdef LOG_LEVEL_HIGH