Indiefreaks.Xna.Sessions.Lidgren.LidgrenSessionManager.OnLidgrenSessionsFound C# (CSharp) Method

OnLidgrenSessionsFound() private method

private OnLidgrenSessionsFound ( IAsyncResult ar ) : void
ar IAsyncResult
return void
        private void OnLidgrenSessionsFound(IAsyncResult ar)
        {
            var foundSessions = new List<AvailableSession>(LidgrenSession.EndFind(ar));

            // cleanup the temp session, this might could be reused.
            CurrentSession.EndSession(); // not sure if this is needed
            CurrentSession = null;
            
            OnSessionsFound(foundSessions);
        }