summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/fuse/fuseApp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp
index 78a3a03..734bf91 100644
--- a/netfs/fuse/fuseApp.cpp
+++ b/netfs/fuse/fuseApp.cpp
@@ -137,8 +137,8 @@ NetFS::FuseApp::opt_parse(void * data, const char * arg, int, struct fuse_args *
void
NetFS::FuseApp::connectSession()
{
+ Lock(_lock);
if (!sessionOpened && ic->getDefaultRouter()) {
- Lock(_lock);
auto router = Ice::checkedCast<Glacier2::RouterPrx>(ic->getDefaultRouter());
session = router->createSession("", "");
if (int acmTimeout = router->getACMTimeout() > 0) {
@@ -152,8 +152,8 @@ NetFS::FuseApp::connectSession()
void
NetFS::FuseApp::connectToService()
{
+ Lock(_lock);
if (!service) {
- Lock(_lock);
auto proxyAddr = fcr->ServiceIdentity;
for (const auto & ep : fcr->Endpoints) {
proxyAddr += ":" + ep;
@@ -168,8 +168,8 @@ NetFS::FuseApp::connectToService()
void
NetFS::FuseApp::connectToVolume()
{
+ Lock(_lock);
if (!volume) {
- Lock(_lock);
volume = service->connect(fcr->ExportName, fcr->AuthToken);
if (!volume) {
throw std::runtime_error("Invalid filesystem proxy");