mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix calling schedule task cause deadlock (#1586)
This commit is contained in:
parent
7723ed57ea
commit
b15c3a8e46
4 changed files with 55 additions and 6 deletions
|
|
@ -201,6 +201,15 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
netRead.Start();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get net read thread (main thread) ID
|
||||
/// </summary>
|
||||
/// <returns>Net read thread ID</returns>
|
||||
public int GetNetReadThreadId()
|
||||
{
|
||||
return netRead != null ? netRead.ManagedThreadId : -1;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue