Skip to content

Commit

Permalink
Minor fixes (#20)
Browse files Browse the repository at this point in the history
* fix(cpu-usage): sleep the thread a bit cause mono(?) seems to schedule the thread quite hard otherwise.

* fix(log): not properly disposed when it should be when the close on chainloader complete config option is enabled
  • Loading branch information
xiaoxiao921 authored Feb 2, 2024
1 parent 571e8d8 commit 5d79448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BepInEx.GUI.Loader/src/SendLogToClientSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ private void SendPacketsToClientUntilConnectionIsClosed(Socket clientSocket)
_ = _logQueue.Dequeue();
}
}

Thread.Sleep(17);
}
}

public void Dispose()
{

_isDisposed = true;
}

internal void StoreLog(LogEventArgs eventArgs)
Expand Down

0 comments on commit 5d79448

Please sign in to comment.