@@ -592,7 +592,7 @@ void sit_list::read_sit_list(int id)
DBRes.GetField( "idx",idx, Error );
int antid = idx-1;
- if(antid >= 2)
+ if(antid >= 2 || antid < 0)
continue;
double x= 0;
@@ -404,8 +404,8 @@ struct sock_client:fd_io,client_ex
{
m_recv_timer.stop();
fd_io::stop();
- m_ic.on_close(shared_from_this());
logn_info(1,"socket %s closed.",m_name.c_str());
+ m_ic.on_close(shared_from_this());
}
size_t calc_length(uint8_t*b)const