Closed jaa2019 closed 2 years ago
Replaced
_output = response.Text;
try
{
_output = _crypto.Decrypt(Convert.FromHexString(response.Text));
}
finally
{
Console.WriteLine($"{response.User}: {_output}");
}
With
try
{
_output = _crypto.Decrypt(Convert.FromHexString(response.Text));
}
catch (Exception e)
{
_output = response.Text;
}
Console.WriteLine($"{response.User}: {_output}");
The issue was that the exception if the response was cleartext never got handled, thus resulting in that the thread created with no exception to the main loop. By catching the exception (and doing nothing with it) fixed the issue.
Sometimes messages doesn't go out to all users - but no exceptions are thrown