Browse Source

小配料站

master
pry 1 year ago
parent
commit
d522c1c576
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      BPASmartClient.Helper/ThreadManage.cs

+ 6
- 1
BPASmartClient.Helper/ThreadManage.cs View File

@@ -197,8 +197,13 @@ namespace BPASmartClient.Helper
/// <returns></returns>
public bool IsCanncel(string key)
{
if(CancellationTokenSources.ContainsKey(guid + key)) return CancellationTokenSources[guid + key].IsCancellationRequested;
if (CancellationTokenSources.ContainsKey(guid + key)) return CancellationTokenSources[guid + key].IsCancellationRequested;
return false;
}

public bool IsContainsKey(string key)
{
return Threads.ContainsKey(guid + key);
}
}
}

Loading…
Cancel
Save