Unmount on disconnect
This commit is contained in:
@@ -478,6 +478,11 @@ void CSiaDriveApp::SiaApiRefreshCallback(CefRefPtr<CefV8Context> context, const
|
|||||||
CefRefPtr<CefV8Value> reloadApplication = global->GetValue("uiUpdate")->GetValue("reloadApplication");
|
CefRefPtr<CefV8Value> reloadApplication = global->GetValue("uiUpdate")->GetValue("reloadApplication");
|
||||||
CefV8ValueList args;
|
CefV8ValueList args;
|
||||||
reloadApplication->ExecuteFunctionWithContext(context, nullptr, args);
|
reloadApplication->ExecuteFunctionWithContext(context, nullptr, args);
|
||||||
|
|
||||||
|
if (!isOnline && _siaDrive)
|
||||||
|
{
|
||||||
|
_siaDrive->Unmount();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
context->Exit();
|
context->Exit();
|
||||||
|
Reference in New Issue
Block a user