event/TimerEvent: rename IsActive() to IsPending()
This commit is contained in:
@@ -395,7 +395,7 @@ NfsConnection::DestroyContext() noexcept
|
||||
#endif
|
||||
|
||||
if (!mount_finished) {
|
||||
assert(mount_timeout_event.IsActive());
|
||||
assert(mount_timeout_event.IsPending());
|
||||
mount_timeout_event.Cancel();
|
||||
}
|
||||
|
||||
@@ -552,7 +552,7 @@ NfsConnection::MountCallback(int status, [[maybe_unused]] nfs_context *nfs,
|
||||
|
||||
mount_finished = true;
|
||||
|
||||
assert(mount_timeout_event.IsActive() || in_destroy);
|
||||
assert(mount_timeout_event.IsPending() || in_destroy);
|
||||
mount_timeout_event.Cancel();
|
||||
|
||||
if (status < 0) {
|
||||
|
Reference in New Issue
Block a user