|
@@ -175,13 +175,13 @@ var
|
|
LTotalHashes, LNotifyHashes : UInt32;
|
|
LTotalHashes, LNotifyHashes : UInt32;
|
|
begin
|
|
begin
|
|
SetLength(LInput, 200);
|
|
SetLength(LInput, 200);
|
|
- while True do begin
|
|
|
|
|
|
+ while Not Terminated do begin
|
|
LTotalHashes := 0;
|
|
LTotalHashes := 0;
|
|
LNotifyHashes := 0;
|
|
LNotifyHashes := 0;
|
|
LStartTime := Now;
|
|
LStartTime := Now;
|
|
LNotifyStartTime := LStartTime;
|
|
LNotifyStartTime := LStartTime;
|
|
LTC := TPlatform.GetTickCount;
|
|
LTC := TPlatform.GetTickCount;
|
|
- while Not FExitLoop do begin
|
|
|
|
|
|
+ while (Not FExitLoop) And (Not Terminated) do begin
|
|
if TryNextRound (RandomizeNonce(LInput), FLastHash) then begin
|
|
if TryNextRound (RandomizeNonce(LInput), FLastHash) then begin
|
|
inc(LTotalHashes);
|
|
inc(LTotalHashes);
|
|
inc(LNotifyHashes);
|
|
inc(LNotifyHashes);
|