Skip to content

Commit e78ef2e

Browse files
committed
fix threadlist
1 parent a035054 commit e78ef2e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Tools/ThreadListTool.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Linq;
32
using CESDK.Classes;
43
using Microsoft.AspNetCore.Builder;
54
using Microsoft.AspNetCore.Http;
@@ -34,15 +33,15 @@ public static void MapThreadListApi(this WebApplication app)
3433
}
3534

3635
/// <summary>
37-
/// Gets all threads as string representations.
36+
/// Gets all threads as hex ID strings.
3837
/// </summary>
39-
/// <returns>Array of thread strings</returns>
38+
/// <returns>Array of thread IDs in hex format</returns>
4039
private static string[] GetThreadList()
4140
{
4241
try
4342
{
44-
var threads = threadList.GetAllThreads();
45-
return threads.Select(t => t.ToString()).ToArray();
43+
threadList.Refresh(); // Refresh to get current threads
44+
return threadList.GetAllThreads();
4645
}
4746
catch (SystemException ex)
4847
{

0 commit comments

Comments
 (0)