refactor
This commit is contained in:
@ -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<drive_mounted>(get_mount_location());
|
||||
} catch (const std::exception &e) {
|
||||
utils::error::raise_error(function_name, e, "exception during fuse init");
|
||||
|
Reference in New Issue
Block a user