Browse Source

过滤<0的天线ID

zzj 5 years ago
parent
commit
5c7afb4f82
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ant.cpp
  2. 1 1
      znet.cpp

+ 1 - 1
ant.cpp

@@ -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;

+ 1 - 1
znet.cpp

@@ -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