project_files/frontlib/net/netconn.c
changeset 7566 57d343ee382f
parent 7497 7e1d72fc03c7
child 7580 c92596feac0d
equal deleted inserted replaced
7563:09a44c8fbfba 7566:57d343ee382f
   331 					flib_team_destroy(team);
   331 					flib_team_destroy(team);
   332 					conn->netconnState = NETCONN_STATE_DISCONNECTED;
   332 					conn->netconnState = NETCONN_STATE_DISCONNECTED;
   333 					conn->onDisconnectedCb(conn->onDisconnectedCtx, NETCONN_DISCONNECT_INTERNAL_ERROR, "Internal error");
   333 					conn->onDisconnectedCb(conn->onDisconnectedCtx, NETCONN_DISCONNECT_INTERNAL_ERROR, "Internal error");
   334 					exit = true;
   334 					exit = true;
   335 	        	} else {
   335 	        	} else {
   336 	        		team->remoteDriven = true;
       
   337 	        		conn->onTeamAddCb(conn->onTeamAddCtx, team);
   336 	        		conn->onTeamAddCb(conn->onTeamAddCtx, team);
   338 	        	}
   337 	        	}
   339 	        }
   338 	        }
   340 	    } else if (!strcmp(cmd, "REMOVE_TEAM")) {
   339 	    } else if (!strcmp(cmd, "REMOVE_TEAM")) {
   341 	        if(netmsg->partCount != 2 || conn->netconnState!=NETCONN_STATE_ROOM) {
   340 	        if(netmsg->partCount != 2 || conn->netconnState!=NETCONN_STATE_ROOM) {