Explorar el Código

FIX: RabbitVCS module initialization

Alexander Koblov hace 4 años
padre
commit
95afe0e469
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/platform/unix/urabbitvcs.pas

+ 2 - 1
src/platform/unix/urabbitvcs.pas

@@ -393,9 +393,10 @@ begin
             begin
               Handler.Data:= nil;
               Handler.Code:= @Initialize;
+              while (gConfig = nil) do Sleep(10);
               TThread.Synchronize(nil, TThreadMethod(Handler));
-              Exit(0);
             end;
+            Exit(0);
           end;
         end;
       end;