]> git.cworth.org Git - sup/blobdiff - bin/sup
yet more better intra-saving exception resilience
[sup] / bin / sup
diff --git a/bin/sup b/bin/sup
index 3892016643b97d7399f9e0d8e7240458e2b5537d..f1d209d61aafad12b07c234d4804c3315a5ad15d 100644 (file)
--- a/bin/sup
+++ b/bin/sup
@@ -254,8 +254,8 @@ rescue Exception => e
   $exception ||= e
 ensure
   unless $opts[:no_threads]
-    PollManager.stop
-    SuicideManager.stop
+    PollManager.stop if PollManager.instantiated?
+    SuicideManager.stop if PollManager.instantiated?
     Index.stop_lock_update_thread
   end