Author Topic: TNUdpLobbyClient requesting a server list even after connected  (Read 2365 times)

andrew

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 44
    • View Profile
Is this an appropriate change to TNUdpLobbyClient.cs to prevent it from continually requesting a server list from the lobby server even after the client is connected to a server?

  1.         else if ( !TNManager.isConnected && ( mNextSend < time ) && ( mUdp != null ) )
  2.         {
  3.                 // Send out the update request
  4.                 mNextSend = time + 3000;
  5.                 mUdp.Send(mRequest, mRemoteAddress);
  6.  
  7.                 // Clean up old servers
  8.                 knownServers.Cleanup(time);
  9.         }
  10.  
  11.  

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNUdpLobbyClient requesting a server list even after connected
« Reply #1 on: March 05, 2013, 12:20:52 PM »
I suggest disabling the TNUdpLobbyClient when you don't need it.