Skip to content

Commit

Permalink
Fixed ERROR no headers found in message occurring every minute (#116)
Browse files Browse the repository at this point in the history
* Fixed ERROR no headers found in message occurring every minute

* Update Dockerfile
  • Loading branch information
aamosljp authored Sep 20, 2023
1 parent 6a47d7d commit 31155a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gosmee/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@ func (c goSmee) clientSetup() error {
return
}

if string(msg.Event) == "ping" {
return
} /* Apparently github sends
* a ping every minute but it's not
* documented anywhere for some reason
*/

pm, err := c.parse(now, msg.Data)
if err != nil {
fmt.Fprintf(os.Stdout,
Expand Down

0 comments on commit 31155a9

Please sign in to comment.