mirror of
https://github.com/netchx/netch.git
synced 2026-05-03 22:25:50 +08:00
Revert "Fix didn't stop Controller when starting Controller"
This commit is contained in:
@@ -548,11 +548,7 @@ namespace Netch.Forms
|
||||
|
||||
try
|
||||
{
|
||||
// "async all the way"
|
||||
// https://docs.microsoft.com/en-us/archive/msdn-magazine/2013/march/async-await-best-practices-in-asynchronous-programming#async-all-the-way
|
||||
|
||||
// here is a dirty hack because the MainController don't need to switch back to UI thread, let it run in threadpool
|
||||
await Task.Run(async () => await MainController.StartAsync(server, mode));
|
||||
await MainController.StartAsync(server, mode);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user