From 7ff54921568d266d52e858d23dec353e0dad14ae Mon Sep 17 00:00:00 2001 From: finn Date: Sat, 19 Mar 2022 22:44:31 -0700 Subject: [PATCH] expose close() option for socket --- signald/signald.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/signald/signald.go b/signald/signald.go index 9f646f0..202ec46 100644 --- a/signald/signald.go +++ b/signald/signald.go @@ -99,6 +99,11 @@ func (s *Signald) connect() error { return nil } + +func (s *Signald) Close() error { + return s.socket.Close() +} + // Listen listens for events from signald func (s *Signald) Listen(c chan client_protocol.BasicResponse) { for {