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");