diff --git a/src/chocolatey/infrastructure.app/services/PendingRebootService.cs b/src/chocolatey/infrastructure.app/services/PendingRebootService.cs index 57f88bd1c9..61f1393ed8 100644 --- a/src/chocolatey/infrastructure.app/services/PendingRebootService.cs +++ b/src/chocolatey/infrastructure.app/services/PendingRebootService.cs @@ -126,7 +126,7 @@ private bool is_pending_windows_auto_update() /// Determines whether there is a pending file rename operation waiting on reboot for lock releases. /// /// - /// true if is pending file rename operations; otherwise, false. + /// false, however, additional information provided in debug log to indicate if it was ignored. /// private bool is_pending_file_rename_operations() { @@ -140,9 +140,11 @@ private bool is_pending_file_rename_operations() result = (value as string[]).Length != 0; } - this.Log().Debug(" - Pending File Rename Operations = {0}".format_with(result ? "Flagged" : "Checked")); + this.Log().Debug(" - Pending File Rename Operations = {0}".format_with(result ? "Ignored" : "Checked")); - return result; + // Always return false, as we don't want this check to result in a pending reboot warning/error. + // Instead, this will only provide output in the debug log indicating that the check was ignored. + return false; } ///