lib/nfs/Connection: remove unnecessary initializers from MountInternal()

This commit is contained in:
Max Kellermann 2024-05-06 18:24:22 +02:00
parent d61c83ace8
commit e6b1cf540b
2 changed files with 3 additions and 10 deletions

View File

@ -565,17 +565,10 @@ NfsConnection::MountInternal()
assert(GetEventLoop().IsInside());
assert(mount_state == MountState::INITIAL);
postponed_mount_error = std::exception_ptr();
mount_state = MountState::WAITING;
mount_timeout_event.Schedule(NFS_MOUNT_TIMEOUT);
#ifndef NDEBUG
in_service = false;
in_event = false;
in_destroy = false;
#endif
if (nfs_mount_async(context, server.c_str(), export_name.c_str(),
MountCallback, this) != 0) {
mount_state = MountState::FINISHED;

View File

@ -111,18 +111,18 @@ class NfsConnection {
/**
* True when nfs_service() is being called.
*/
bool in_service;
bool in_service = false;
/**
* True when OnSocketReady() is being called. During that,
* event updates are omitted.
*/
bool in_event;
bool in_event = false;
/**
* True when DestroyContext() is being called.
*/
bool in_destroy;
bool in_destroy = false;
#endif
public: