We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb7b85 commit cf19433Copy full SHA for cf19433
app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb
@@ -28,7 +28,14 @@ def stop(join_timeout = 2.minutes)
28
29
# The WaitOptions for WaitForUpdatesEx call sets maxWaitSeconds to 60 seconds
30
self.exit_requested = true
31
- vim_thread&.join(join_timeout)
+
32
+ if vim_thread
33
+ # Give the collector thread a chance to exit cleanly, then kill it to
34
+ # ensure we don't have multiple collector threads running.
35
+ result = vim_thread.join(join_timeout)
36
+ vim_thread.kill if result.nil?
37
+ end
38
39
self.exit_requested = false
40
end
41
0 commit comments