Windows: in case of system favorite mounting, update list of host devices before each retry to mount disconnected favorites.

This commit is contained in:
Mounir IDRASSI 2017-07-07 01:06:07 +02:00
parent 1c3156a17b
commit 4e0ced43a4
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -9679,6 +9679,9 @@ BOOL MountFavoriteVolumes (HWND hwnd, BOOL systemFavorites, BOOL logOnMount, BOO
{ {
Sleep (5000); Sleep (5000);
SystemFavoritesServiceLogInfo (wstring (L"Updating list of host devices"));
UpdateMountableHostDeviceList ();
SystemFavoritesServiceLogInfo (wstring (L"Trying to mount skipped system favorites")); SystemFavoritesServiceLogInfo (wstring (L"Trying to mount skipped system favorites"));
// Update the service status to avoid being killed // Update the service status to avoid being killed