From 1c4153642b4e49b5fd527c0ea151af343ce75a58 Mon Sep 17 00:00:00 2001
From: a <a@a.a>
Date: Sat, 24 Sep 2022 02:29:57 -0500
Subject: [PATCH] fix 2

---
 protocol.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/protocol.go b/protocol.go
index e5d36dc..bc98700 100644
--- a/protocol.go
+++ b/protocol.go
@@ -125,7 +125,9 @@ func (w *ResponseWriterMsg) Send(args any, e error) (err error) {
 		return nil
 	}
 	w.msg = cm.response(args)
-	close(w.notifications)
+	if w.notifications != nil {
+		close(w.notifications)
+	}
 	return nil
 }
 
-- 
GitLab