mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix TMySQLConnection.Ping in situations when FActive is already false, like a detected disconnect when hovering over server status panel. Most probably fixes what's described here: http://www.heidisql.com/forum.php?t=8499
This commit is contained in:
@@ -1233,7 +1233,7 @@ end;
|
||||
function TMySQLConnection.Ping(Reconnect: Boolean): Boolean;
|
||||
begin
|
||||
Log(lcDebug, 'Ping server ...');
|
||||
if FActive and ((FHandle=nil) or (mysql_ping(FHandle) <> 0)) then begin
|
||||
if (FHandle=nil) or (mysql_ping(FHandle) <> 0) then begin
|
||||
// Be sure to release some stuff before reconnecting
|
||||
Active := False;
|
||||
if Reconnect then
|
||||
|
||||
Reference in New Issue
Block a user