Gvr.Internal.EmulatorClientSocket.OnDestroy C# (CSharp) Method

OnDestroy() private method

private OnDestroy ( ) : void
return void
        void OnDestroy()
        {
            Debug.Log("Shutting down ClientSocket.");
              shouldStop = true;

              if (phoneMirroringSocket != null) {
            phoneMirroringSocket.Close ();
            phoneMirroringSocket = null;
              }

              if (phoneEventThread != null) {
            phoneEventThread.Join();
              }
        }