94e895a
--- alexandria-book-collection-manager-0.7.6/lib/alexandria/ui/new_book_dialog.rb.nothread	2020-11-03 00:29:34.194485720 +0900
94e895a
+++ alexandria-book-collection-manager-0.7.6/lib/alexandria/ui/new_book_dialog.rb	2020-11-03 00:34:01.426386821 +0900
94e895a
@@ -281,15 +281,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
 
94e895a
           # @find_thread.alive? happens after find_thread is done
94e895a
-          unless continue || @find_thread.alive? || @destroyed
94e895a
+          unless continue || (@find_thread && @find_thread.alive?) || @destroyed
94e895a
             notify_end_add_by_isbn
94e895a
             @button_add.sensitive = false
94e895a
           end