Upload manager changes
This commit is contained in:
@@ -12,12 +12,12 @@ using namespace Sia::Api::Dokan;
|
||||
class DokanImpl
|
||||
{
|
||||
private:
|
||||
struct OpenFileInfo
|
||||
typedef struct
|
||||
{
|
||||
String SiaPath;
|
||||
String CacheFilePath;
|
||||
bool ReadOnly;
|
||||
};
|
||||
} OpenFileInfo;
|
||||
|
||||
private:
|
||||
static std::mutex _dokanMutex;
|
||||
@@ -511,6 +511,7 @@ void CSiaDokanDrive::Mount(const wchar_t& driveLetter, const String& cacheLocati
|
||||
void CSiaDokanDrive::Unmount(const bool& clearCache)
|
||||
{
|
||||
std::lock_guard<std::mutex> l(DokanImpl::GetMutex());
|
||||
// TODO When files are open, need to prompt and prevent shutdown?
|
||||
DokanImpl::Unmount();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user