Commits

Anonymous committed cc92247

do not try to start server multiple times

  • Participants
  • Parent commits dddb597

Comments (0)

Files changed (1)

File lib/mrt/ingest/one_time_server.rb

       end
       
       def start_server
-        @thread = Thread.new do
-          @server.start
+        if @thread.nil? then
+          @thread = Thread.new do
+            @server.start
+          end
+        end
+        while (@server.status != :Running) do
+          sleep(0.1)
         end
         return @thread
       end