Browse Source

Fixed issue where server error would hang system.

master
Teknikode 3 years ago
parent
commit
f868b6b3e5
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      IRCServices/Messaging/Messages.cs

+ 6
- 3
IRCServices/Messaging/Messages.cs View File

@@ -448,10 +448,13 @@ namespace Combot.IRCServices.Messaging
ErrorMessage error = new ErrorMessage();
error.Message = match.Groups["Message"].Value;

if (ErrorMessageEvent != null)
await Task.Run(() =>
{
ErrorMessageEvent(this, error);
}
if (ErrorMessageEvent != null)
{
ErrorMessageEvent(this, error);
}
});
}

string rawMessage = message;

Loading…
Cancel
Save