提交 3d18008c 编写于 作者: Y youngwolf

Avoid accessing the send queue concurrently for demo file_server.

上级 f38064be
Subproject commit 77ed33821d6473d6904ef3171e318181c015003a
Subproject commit 0355fc59807198034780c814c799ed353ffe960f
......@@ -57,7 +57,7 @@ void file_socket::handle_msg(out_msg_ctype& msg)
switch (*msg.data())
{
case 0:
if (TRANS_IDLE == state)
if (TRANS_IDLE == state && !is_sending()) //avoid accessing the send queue concurrently, because we used non_lock_queue
{
trans_end();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册