Skip to content

Commit

Permalink
Merge pull request #316 from WinRb/unless_shell
Browse files Browse the repository at this point in the history
do not cleanup command if there is no shell
  • Loading branch information
mwrock authored Sep 29, 2020
2 parents b02b31b + f8c030d commit 1227332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/winrm/shells/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def reset_on_error(error)
end

def cleanup_command(command_id)
return unless shell_id
logger.debug("[WinRM] cleaning up command_id: #{command_id} on shell_id #{shell_id}")
cleanup_msg = WinRM::WSMV::CleanupCommand.new(
connection_opts,
Expand Down

0 comments on commit 1227332

Please sign in to comment.