From 1e25fb57f1aa0b7057592484792ae5b47c05e8db Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 22 Jan 2025 07:31:02 -0600 Subject: [PATCH] refactor --- repertory/librepertory/src/drives/fuse/fuse_drive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repertory/librepertory/src/drives/fuse/fuse_drive.cpp b/repertory/librepertory/src/drives/fuse/fuse_drive.cpp index ef3d21bd..4a1b7598 100644 --- a/repertory/librepertory/src/drives/fuse/fuse_drive.cpp +++ b/repertory/librepertory/src/drives/fuse/fuse_drive.cpp @@ -622,12 +622,12 @@ void *fuse_drive::init_impl(struct fuse_conn_info *conn) { config_, *this, get_mount_location()); } + polling::instance().start(&config_); + if (not lock_data_.set_mount_state(true, get_mount_location(), getpid())) { utils::error::raise_error(function_name, "failed to set mount state"); } - polling::instance().start(&config_); - event_system::instance().raise(get_mount_location()); } catch (const std::exception &e) { utils::error::raise_error(function_name, e, "exception during fuse init");