We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b816423 commit 6fb2ad1Copy full SHA for 6fb2ad1
1 file changed
Project-Aurora/Project-Aurora/Utils/RegistryWatcher.cs
@@ -55,9 +55,16 @@ public void StartWatching()
55
var query = new WqlEventQuery(queryString);
56
_eventWatcher = new ManagementEventWatcher(scope, query);
57
_eventWatcher.EventArrived += KeyWatcherOnEventArrived;
58
- _eventWatcher.Start();
+ try
59
+ {
60
+ _eventWatcher.Start();
61
- SendData();
62
+ SendData();
63
+ }
64
+ catch (Exception e)
65
66
+ Global.logger.Error("Registry not available, Query: {0}", queryString);
67
68
}
69
70
public void StopWatching()
0 commit comments