Skip to content

Commit

Permalink
Merge pull request #35 from DianeLooney/master
Browse files Browse the repository at this point in the history
Allow nil type tags on server, clean up net connection on failure
  • Loading branch information
hypebeast authored Jan 15, 2020
2 parents e4d823f + a46ff17 commit 85fee7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osc/osc.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ func (s *Server) ListenAndServe() error {
if err != nil {
return err
}
defer ln.Close()

return s.Serve(ln)
}

Expand Down Expand Up @@ -774,6 +776,9 @@ func readArguments(msg *Message, reader *bufio.Reader, start *int) error {
*start += 8
msg.Append(NewTimetagFromTimetag(tt))

case 'N': // nil
msg.Append(nil)

case 'T': // true
msg.Append(true)

Expand Down

0 comments on commit 85fee7f

Please sign in to comment.