Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wlgq2 committed May 6, 2020
1 parent ff2be46 commit 0742f8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uv/TcpConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ void TcpConnection::onSocketClose()

void TcpConnection::close(std::function<void(std::string&)> callback)
{
onMessageCallback_ = nullptr;
onConnectCloseCallback_ = nullptr;
closeCompleteCallback_ = nullptr;

closeCompleteCallback_ = callback;
uv_tcp_t* ptr = handle_.get();
if (::uv_is_active((uv_handle_t*)ptr))
Expand Down

0 comments on commit 0742f8b

Please sign in to comment.