diff --git a/monitor.go b/monitor.go index 7bd88f3..7a25e3b 100644 --- a/monitor.go +++ b/monitor.go @@ -302,7 +302,7 @@ func (monitor *Monitor) monitor() { Changes: changesEvents, } - changesEvents = make([]*MonitorEvent, 0) + changesEvents = nil } } }