diff --git a/fsevents.go b/fsevents.go index 6ff0797..fd0bd86 100644 --- a/fsevents.go +++ b/fsevents.go @@ -158,7 +158,9 @@ func (es *EventStream) Start() { // in C callback cbInfo := registry.Add(es) es.registryID = cbInfo - es.uuid = GetDeviceUUID(es.Device) + if es.Device != 0 { + es.uuid = GetDeviceUUID(es.Device) + } es.start(es.Paths, cbInfo) }