Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Aug 5, 2020
1 parent eaba710 commit ed2c2a5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions OWML.Logging/ModSocketOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,16 @@ private void WriteLine(MessageType type, string line, string senderType)

if (message.Type == MessageType.Fatal)
{
_socket.Close();
Process.GetCurrentProcess().Kill();
KillProcess();
}
}

private void KillProcess()
{
_socket.Close();
Process.GetCurrentProcess().Kill();
}

private string GetCallingType(StackTrace frame)
{
try
Expand Down

0 comments on commit ed2c2a5

Please sign in to comment.