将Task.Run替换为Task.Factory.StartNew以兼容.NET Framework 4.0
This commit is contained in:
@@ -1445,7 +1445,7 @@ namespace JoyD.Windows.CS.Toprie
|
|||||||
{
|
{
|
||||||
if (_deviceManager != null && !string.IsNullOrEmpty(_deviceManager.IPAddress))
|
if (_deviceManager != null && !string.IsNullOrEmpty(_deviceManager.IPAddress))
|
||||||
{
|
{
|
||||||
Task.Run(() =>
|
Task.Factory.StartNew(() =>
|
||||||
{
|
{
|
||||||
bool pingResult = PingDevice(_deviceManager.IPAddress);
|
bool pingResult = PingDevice(_deviceManager.IPAddress);
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user