408d3fd
--- alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/new_book_dialog.rb.nothread	2020-01-03 17:37:42.394366241 +0900
408d3fd
+++ alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/new_book_dialog.rb	2020-01-04 13:24:08.240415691 +0900
408d3fd
@@ -279,15 +279,17 @@ module Alexandria
ee63fe2
                          get_images_async
408d3fd
                          false # continue == false if you get to here. Stop timeout.
ee63fe2
                        end
ee63fe2
-                     else
ee63fe2
+                     elsif @find_thread
ee63fe2
                        # Stop if the book find thread has stopped.
ee63fe2
                        @find_thread.alive?
ee63fe2
+                     else
ee63fe2
+                       true
ee63fe2
                      end
ee63fe2
           # continue == false if @find_error OR if results are returned
408d3fd
           # timeout ends if continue is false!
ee63fe2
 
ee63fe2
           unless continue
408d3fd
-            unless @find_thread.alive? # This happens after find_thread is done
408d3fd
+            unless (@find_thread && @find_thread.alive?) # This happens after find_thread is done
ee63fe2
               unless @destroyed
408d3fd
                 # GLib::Source.remove(progress_pulsing)
ee63fe2
                 # @progressbar.hide