Browse Source

Update UPoolMining.pas

PascalCoin 6 years ago
parent
commit
ca5e130ba0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/core/UPoolMining.pas

+ 3 - 3
src/core/UPoolMining.pas

@@ -576,9 +576,6 @@ begin
       Dispose(PToDelete);
       Dispose(PToDelete);
       TLog.NewLog(ltDebug,ClassName,'Deleted Job 1 from buffer, now count:'+inttostr(l.Count));
       TLog.NewLog(ltDebug,ClassName,'Deleted Job 1 from buffer, now count:'+inttostr(l.Count));
     end;
     end;
-  Finally
-    FPoolJobs.UnlockList;
-  End;
   if (doAdd) And (Assigned(P)) then begin
   if (doAdd) And (Assigned(P)) then begin
     params := TPCJSONObject.Create;
     params := TPCJSONObject.Create;
     Try
     Try
@@ -596,6 +593,9 @@ begin
       params.Free;
       params.Free;
     End;
     End;
   end;
   end;
+  Finally
+    FPoolJobs.UnlockList;
+  End;
 end;
 end;
 
 
 procedure TPoolMiningServer.ClearPoolJobs;
 procedure TPoolMiningServer.ClearPoolJobs;