Example #1
0
 private void DoStopVPN()
 {
     lock (m_vpnTaskSync)
     {
         if (m_vpnTask != null)
         {
             try
             {
                 m_vpnTask.Cancel();
                 m_vpnTask.Wait();
             }
             finally
             {
                 m_vpnTask = null;
             }
         }
     }
 }