Skip to content

Commit fecd115

Browse files
committed
fix:修复TcpConnector::stop()的错误
Solved: #44
1 parent de1068b commit fecd115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/network/tcp_connector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ bool TcpConnector::start()
9393

9494
void TcpConnector::stop()
9595
{
96-
if ((state_ == State::kConnecting) || (state_ == State::kNone))
96+
if ((state_ == State::kInited) || (state_ == State::kNone))
9797
return;
9898

9999
if (state_ == State::kConnecting)

0 commit comments

Comments
 (0)