mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
:art:安装Tap driver时留出一点时间 防止找不到适配器ID
This commit is contained in:
@@ -4,6 +4,7 @@ using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Net.Sockets;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Netch.Utils
|
||||
@@ -169,6 +170,8 @@ namespace Netch.Utils
|
||||
installProcess.Start();
|
||||
installProcess.WaitForExit();
|
||||
installProcess.Close();
|
||||
//给点时间,不然立马安装完毕就查找适配器可能会导致找不到适配器ID
|
||||
Thread.Sleep(1000);
|
||||
|
||||
Global.TUNTAP.ComponentID = TUNTAP.GetComponentID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user