Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzo committed Jul 22, 2024
1 parent 5a88913 commit 1fb4dd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changesets/Boneworks_SpeedrunTools_Patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes logger error on startup.
5 changes: 2 additions & 3 deletions common/Utilities/IpcServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.IO.Pipes;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Sst.Common.Ipc {
public abstract class Logger {
Expand Down Expand Up @@ -61,9 +62,7 @@ public static void SendToStream(NamedPipeServerStream stream,
stream.Write(bytes, 0, bytes.Length);
}

private void StartNewPipeServerThread() {
new Thread(StartNewPipeServer).Start();
}
private void StartNewPipeServerThread() { Task.Run(StartNewPipeServer); }

private void StartNewPipeServer() {
try {
Expand Down
1 change: 1 addition & 0 deletions projects/Boneworks/SpeedrunTools/src/Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private static void OnFeatureCallback(Action<Feature> action) {
}

public override void OnApplicationStart() {
Dbg.Init(Utils.PREF_CATEGORY);
Directory.CreateDirectory(Utils.DIR);

Utils.s_prefCategory = MelonPreferences.CreateCategory(Utils.PREF_CATEGORY);
Expand Down

0 comments on commit 1fb4dd8

Please sign in to comment.