fix: Fixes unresponsive console input (#1720)
### Summary Fixes an issue where the call priority of `Initialize` functions causes a dead lock because the console input handler was not initialized.
This commit is contained in:
parent
974062b0d4
commit
912eaab460
4 changed files with 15 additions and 11 deletions
|
|
@ -15,16 +15,16 @@ public static class AccountPrompt
|
|||
Console.WriteLine("This server has no accounts.");
|
||||
Console.Write("Do you want to create the owner account now? (y/n): ");
|
||||
|
||||
var answer = Console.ReadLine();
|
||||
var answer = ConsoleInputHandler.ReadLine();
|
||||
if (answer.InsensitiveEquals("y"))
|
||||
{
|
||||
Console.WriteLine();
|
||||
|
||||
Console.Write("Username: ");
|
||||
var username = Console.ReadLine();
|
||||
var username = ConsoleInputHandler.ReadLine();
|
||||
|
||||
Console.Write("Password: ");
|
||||
var password = Console.ReadLine();
|
||||
var password = ConsoleInputHandler.ReadLine();
|
||||
|
||||
var a = new Account(username, password)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue