project_files/frontlib/net/netconn.c
changeset 7324 fb6bfe8e30c8
parent 7320 e704706008d4
child 7336 f821f7d727b7
equal deleted inserted replaced
7322:18e1fba30f99 7324:fb6bfe8e30c8
   618 	    } else {
   618 	    } else {
   619 	    	flib_log_w("Unknown server command: %s", cmd);
   619 	    	flib_log_w("Unknown server command: %s", cmd);
   620 	    }
   620 	    }
   621 		flib_netmsg_destroy(netmsg);
   621 		flib_netmsg_destroy(netmsg);
   622 	}
   622 	}
       
   623 
       
   624 	if(!exit && !conn->destroyRequested && !flib_netbase_connected(net)) {
       
   625 		conn->netconnState = NETCONN_STATE_DISCONNECTED;
       
   626 		conn->onDisconnectedCb(conn->onDisconnectedCtx, NETCONN_DISCONNECT_CONNLOST, "Connection lost");
       
   627 	}
   623 }
   628 }
   624 
   629 
   625 void flib_netconn_tick(flib_netconn *conn) {
   630 void flib_netconn_tick(flib_netconn *conn) {
   626 	if(!log_badargs_if(conn==NULL)
   631 	if(!log_badargs_if(conn==NULL)
   627 			&& !log_w_if(conn->running, "Call to flib_netconn_tick from a callback")
   632 			&& !log_w_if(conn->running, "Call to flib_netconn_tick from a callback")