@@ -676,7 +676,7 @@ procedure TPackageClientThread.Execute;
676
676
try
677
677
list := client.search(' ' , ' ' , ' ' , false);
678
678
list.SortE(compare);
679
- MainConsoleForm.Flock.Lock;
679
+ MainConsoleForm.Flock.Lock( ' pck.exec ' ) ;
680
680
try
681
681
MainConsoleForm.FThreadPackages := list;
682
682
finally
@@ -2766,7 +2766,7 @@ procedure TMainConsoleForm.Timer1Timer(Sender: TObject);
2766
2766
tsth := TStringList.Create;
2767
2767
try
2768
2768
d := 0 ;
2769
- Flock.Lock;
2769
+ Flock.Lock( ' console.timer ' ) ;
2770
2770
try
2771
2771
st := FStatus;
2772
2772
ss := FServerStatus;
@@ -2812,7 +2812,7 @@ procedure TMainConsoleForm.Timer1Timer(Sender: TObject);
2812
2812
sBar.Panels[0 ].Text := ' Connected' ;
2813
2813
if not FTelnet.connected then
2814
2814
begin
2815
- Flock.Lock;
2815
+ Flock.Lock( ' consoler.timer2 ' ) ;
2816
2816
try
2817
2817
FStatus := csDiconnected;
2818
2818
finally
@@ -2902,7 +2902,7 @@ procedure TMainConsoleForm.ToolButton3Click(Sender: TObject);
2902
2902
FLines.clear;
2903
2903
mConsole.Lines.Clear;
2904
2904
FTelnet.Disconnect;
2905
- FLock.lock;
2905
+ FLock.lock( ' console.button3 ' ) ;
2906
2906
try
2907
2907
FStatus := csDiconnected;
2908
2908
finally
@@ -2937,7 +2937,7 @@ procedure TMainConsoleForm.processIncomingLine(line : String);
2937
2937
reply : String;
2938
2938
begin
2939
2939
reply := ' ' ;
2940
- FLock.Lock;
2940
+ FLock.Lock( ' console.line ' ) ;
2941
2941
try
2942
2942
case FStatus of
2943
2943
csDiconnected :
@@ -3228,7 +3228,7 @@ procedure TMainConsoleForm.DoIncoming(Sender: TIdTelnet; const Buffer: TIdBytes)
3228
3228
3229
3229
procedure TMainConsoleForm.DoConnected (Sender: TObject);
3230
3230
begin
3231
- FLock.Lock;
3231
+ FLock.Lock( ' console.connected ' ) ;
3232
3232
try
3233
3233
FStatus := csUsername;
3234
3234
finally
@@ -3250,7 +3250,7 @@ procedure TMainConsoleForm.DoDisconnected(Sender: TObject);
3250
3250
FConnected := false;
3251
3251
btnClearCache.enabled := false;
3252
3252
btnFetchThreads.enabled := false;
3253
- FLock.Lock;
3253
+ FLock.Lock( ' console.disconnect ' ) ;
3254
3254
try
3255
3255
FStatus := csDiconnected;
3256
3256
finally
0 commit comments