Skip to content

Commit

Permalink
Merge pull request #13528 from yuyuyu101/wip-fix-rdma-fd
Browse files Browse the repository at this point in the history
msg/async/rdma: don't need to delete event when tcp connection isn't …

Reviewed-by: Adir lev <adirl@mellanox.com>
  • Loading branch information
yuyuyu101 committed Feb 20, 2017
2 parents 0f9c15e + b056f09 commit 3c0af07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg/async/rdma/RDMAConnectedSocketImpl.cc
Expand Up @@ -528,7 +528,7 @@ void RDMAConnectedSocketImpl::fin() {
}

void RDMAConnectedSocketImpl::cleanup() {
if (con_handler) {
if (con_handler && tcp_fd >= 0) {
(static_cast<C_handle_connection*>(con_handler))->close();
worker->center.submit_to(worker->center.get_id(), [this]() {
worker->center.delete_file_event(tcp_fd, EVENT_READABLE);
Expand Down

0 comments on commit 3c0af07

Please sign in to comment.