From: Haomai Wang Date: Wed, 29 Jun 2016 09:22:20 +0000 (+0800) Subject: msg/async: remove close socket line X-Git-Tag: ses5-milestone5~429^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fdb9c7dba3987a5e9e5da39c6d1c2d92ff6b62b5;p=ceph.git msg/async: remove close socket line because if we are in STATE_CLOSED, fd must be -1 Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index b1b54890d982..18d480da43df 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -956,8 +956,6 @@ void AsyncConnection::process() case STATE_CLOSED: { - if (sd >= 0) - center->delete_file_event(sd, EVENT_READABLE); ldout(async_msgr->cct, 20) << __func__ << " socket closed" << dendl; break; }