fix: 修正daemon监听逻辑

This commit is contained in:
Mmx
2021-11-26 08:41:13 +08:00
parent c0ebd61671
commit 629efcfe8a

View File

@@ -51,7 +51,7 @@ func (a *daemon) DaemonChan() bool {
for {
select {
case event := <-f.Event:
if event.IsModify() && !a.CheckDaemon() {
if event.IsModify() && a.CheckDaemon() {
continue
}
os.Exit(0)