expose close() option for socket

This commit is contained in:
finn 2022-03-19 22:44:31 -07:00
parent 2b1f0dada7
commit 7ff5492156

View file

@ -99,6 +99,11 @@ func (s *Signald) connect() error {
return nil return nil
} }
func (s *Signald) Close() error {
return s.socket.Close()
}
// Listen listens for events from signald // Listen listens for events from signald
func (s *Signald) Listen(c chan client_protocol.BasicResponse) { func (s *Signald) Listen(c chan client_protocol.BasicResponse) {
for { for {