We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbd735b commit 1fb4c2cCopy full SHA for 1fb4c2c
1 file changed
lib/winrm/shells/base.rb
@@ -94,6 +94,10 @@ def close
94
@shell_id = nil
95
end
96
97
+ def self.finalize(connection_opts, transport, shell_id)
98
+ proc { Thread.new { close_shell(connection_opts, transport, shell_id) } }
99
+ end
100
+
101
protected
102
103
def send_command(_command, _arguments)
@@ -183,10 +187,6 @@ def add_finalizer
183
187
def remove_finalizer
184
188
ObjectSpace.undefine_finalizer(self)
185
189
186
-
- def self.finalize(connection_opts, transport, shell_id)
- proc { Thread.new { close_shell(connection_opts, transport, shell_id) } }
- end
190
191
192
0 commit comments