Skip to content

Commit

Permalink
Test commit to try and reduce dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
joncham committed Aug 24, 2021
1 parent d83273d commit c77282d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mcs/class/System/System.IO/FileSystemWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ void InitWatcher ()

string managed = Environment.GetEnvironmentVariable ("MONO_MANAGED_WATCHER");
int mode = 0;
bool ok = false;
#if !UNITY_AOT
if (managed == null)
mode = InternalSupportsFSW ();

bool ok = false;
switch (mode) {
case 1: // windows
ok = DefaultWatcher.GetInstance (out watcher);
Expand All @@ -149,6 +150,7 @@ void InitWatcher ()
watcher_handle = (watcher as CoreFXFileSystemWatcherProxy).NewWatcher (this);
break;
}
#endif

if (mode == 0 || !ok) {
if (String.Compare (managed, "disabled", true) == 0)
Expand Down

0 comments on commit c77282d

Please sign in to comment.