Skip to content

Commit

Permalink
trival
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Sep 11, 2017
1 parent d250528 commit 1c831f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,12 @@ int server_on_raw_recv_multi() //called when server received an raw packet
//mylog(log_info,"after recv_safer\n");
return server_on_raw_recv_ready(conn_info,ip_port,type,data,data_len);
}

if(conn_info.state.server_current_state==server_idle)
{
recv(raw_recv_fd, 0,0, 0 );//
return 0;
}
mylog(log_fatal,"we should never run to here\n");
myexit(-1);
return -1;
Expand Down

0 comments on commit 1c831f2

Please sign in to comment.