summaryrefslogtreecommitdiff
path: root/sql/scheduler.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-01-12 20:13:22 +0100
committerSergei Golubchik <sergii@pisem.net>2012-01-12 20:13:22 +0100
commita1e3fa93c74d50de3160545d3d9c18ca06dfcc7e (patch)
tree17c0708a0e1cba6de7ca9ac28b2ec32d85df84ff /sql/scheduler.cc
parentf523df0a04b5c43103d9628f8c714b81b735e838 (diff)
downloadmariadb-git-a1e3fa93c74d50de3160545d3d9c18ca06dfcc7e.tar.gz
lp:893522 more problems found by PVS Studio
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r--sql/scheduler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/scheduler.cc b/sql/scheduler.cc
index 6dd93640dc5..d301b205b58 100644
--- a/sql/scheduler.cc
+++ b/sql/scheduler.cc
@@ -514,7 +514,7 @@ static void libevent_connection_close(THD *thd)
thd->killed= THD::KILL_CONNECTION; // Avoid error messages
- if (thd->net.vio->sd >= 0) // not already closed
+ if (thd->net.vio->type != VIO_CLOSED) // not already closed
{
end_connection(thd);
close_connection(thd, 0, 1);