Skip to content

Commit 8f82b09

Browse files
committed
Change compiler timeout to be plugin count depended
1 parent 89dae63 commit 8f82b09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CompilableFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ internal virtual void OnCompilationStarted()
8787
Interface.Oxide.NextTick(() =>
8888
{
8989
timeoutTimer?.Destroy();
90-
timeoutTimer = timer.Once(60f, OnCompilationTimeout);
90+
timeoutTimer = timer.Once(Math.Max(30, Loader.LoadingPlugins.Count * 3), OnCompilationTimeout);
9191
});
9292
}
9393

0 commit comments

Comments
 (0)