Пример #1
0
 static public bool DisconnectWithConfirmation(BaseProxyServer item, string homeIP, bool createdNew, JobLog jobLog)
 {
     if (NetConnUtils.IsActiveConnectionPresent())
     {
         NetConnUtils.CloseAllActiveConnections(false);
         Thread.Sleep(2 * 1000);
     }
     if (createdNew)
     {
         NetConnUtils.RemoveConnectionEntry(item);
     }
     return(true);
 }