/// <summary> /// Used to stop the broadcast of the current match /// </summary> public void StopMatchBroadcast() { if (!IsBroadcastingMatch) { return; } IsBroadcastingMatch = false; LANMatchSendThread.Abort(); LANMatchSocket.Close(); }
/// <summary> /// Function used to start recieving LAN matches /// </summary> public void StopLANMatchRecieve() { if (!IsSearchingForMatches) { return; } Log("Stop LAN listen"); IsSearchingForMatches = false; LANMatchRecieveThread.Abort(); LANMatchSocket.Close(1); }