detect same drive with serial and path

This commit is contained in:
Hendrik Schutter 2020-09-15 11:11:53 +02:00
parent 5a0f92deec
commit 5e74a99062
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ void reHDD::filterNewDrives(vector <Drive>* pvecOldDrives, vector <Drive>* 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