|
@@ -164,13 +164,17 @@ namespace WinBox
|
|
|
//detectionPort();
|
|
|
if (!PortInUse(9191))
|
|
|
{
|
|
|
- MessageBox.Show("有依赖项启动失败,请重新启动客户端或联系管理员!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
|
|
+ Thread.Sleep(2500);
|
|
|
+ if (!PortInUse(9191))
|
|
|
+ {
|
|
|
+ MessageBox.Show("有依赖项启动失败,请重新启动客户端或联系管理员!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public bool PortInUse(int port)
|
|
|
{
|
|
|
- Thread.Sleep(2500);
|
|
|
+
|
|
|
bool inUse = false;
|
|
|
|
|
|
IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties();
|