Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions snotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func dndWatcher() () {
wg.Add(1)
go func () {
pipe, err := cmd.StdoutPipe()
wg.Done()
wg.Wait()
if err != nil {
log.Println("GSettings failed:", err)
return
Expand Down Expand Up @@ -118,7 +118,7 @@ func dndWatcher() () {
dndLock.Unlock()
}
} ()
wg.Wait()
wg.Done()
err := cmd.Start()
if err != nil {
fmt.Println("Could not start DnD monitor:", err)
Expand Down
Loading