detect same drive with serial and path
This commit is contained in:
parent
5a0f92deec
commit
5e74a99062
@ -237,7 +237,7 @@ void reHDD::filterNewDrives(vector <Drive>* pvecOldDrives, vector <Drive>* pvecN
|
|||||||
itOld->bIsOffline = true; //set offline befor seachring in the new list
|
itOld->bIsOffline = true; //set offline befor seachring in the new list
|
||||||
for (itNew = pvecNewDrives->begin(); itNew != pvecNewDrives->end();)
|
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
|
itOld->bIsOffline = false; //drive is still attached
|
||||||
#ifdef LOG_LEVEL_HIGH
|
#ifdef LOG_LEVEL_HIGH
|
||||||
|
Loading…
Reference in New Issue
Block a user