Kaydet (Commit) 0a04150b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

tdf#124635 MountOperation::Mount can be called with SolarMutex unlocked

Change-Id: I7a36dd235a100b0d283eec86646dc167ac224ba7
Reviewed-on: https://gerrit.libreoffice.org/71133
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst aafc733e
......@@ -349,8 +349,15 @@ GError *MountOperation::Mount(GFile *pFile)
// GdkThreadsLeave unlock the SolarMutex down to zero at the end of
// g_main_loop_run, so we need ~SolarMutexReleaser to raise it back to
// the original value again:
SolarMutexReleaser rel;
g_main_loop_run(mpLoop);
if (comphelper::SolarMutex::get()->IsCurrentThread())
{
SolarMutexReleaser rel;
g_main_loop_run(mpLoop);
}
else
{
g_main_loop_run(mpLoop);
}
}
return mpError;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment