Skip to content

Commit

Permalink
Fixed TCP onConnect crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrasilicon committed Jul 4, 2019
1 parent 50d8dd4 commit 7bbbf76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tcp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ void TcpSocket::writeCb(uv_write_t *handle, int status)

void TcpSocket::connectCb(uv_connect_t *handle, int status)
{
//! TODO: crash
// getInstance((uv_tcp_t*) handle)->onConnected();
getPHandle((uv_tcp_t*)handle->handle)->onConnected();
}

void TcpSocket::receiveCb(uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf)
Expand Down

0 comments on commit 7bbbf76

Please sign in to comment.