private void TimeoutExpired(object commandObject)
{
MySqlCommand cmd = (commandObject as MySqlCommand);
if (cmd == null)
{
Logger.LogWarning(Resources.TimeoutExpiredNullObject);
return;
}
cmd.timedOut = true;
try
{
cmd.Cancel();
}
catch (Exception ex)
{
// if something goes wrong, we log it and eat it. There's really nothing
// else we can do.
if (connection.Settings.Logging)
{
Logger.LogException(ex);
}
}
}