Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Skip initialization of file watcher for exception watcher when it's d…
Browse files Browse the repository at this point in the history
…isabled

- Addresses #50
  • Loading branch information
MerlinVR committed Jul 13, 2020
1 parent 81c4355 commit 3d37c8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Assets/UdonSharp/Editor/UdonSharpRuntimeExceptionWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ static bool InitializeScriptLookup()

if (EditorApplication.isCompiling || EditorApplication.isUpdating)
return false;

AssemblyReloadEvents.beforeAssemblyReload += CleanupLogWatcher;

UdonSharpSettings udonSharpSettings = UdonSharpSettings.GetSettings();

if (udonSharpSettings == null || !udonSharpSettings.listenForVRCExceptions)
return false;

AssemblyReloadEvents.beforeAssemblyReload += CleanupLogWatcher;

if (logDirectoryWatcher == null)
{
// Now setup the filesystem watcher
Expand Down
2 changes: 1 addition & 1 deletion Assets/UdonSharp/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.17.1
v0.17.2

0 comments on commit 3d37c8d

Please sign in to comment.