From 7b9e2a8d2977b83e1586d205857ea40ba938c829 Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Sun, 24 Sep 2023 15:36:17 -0400 Subject: [PATCH] Fixing bug where nil handler was called --- real_time.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/real_time.go b/real_time.go index 9f3b80e..2371707 100644 --- a/real_time.go +++ b/real_time.go @@ -182,9 +182,9 @@ func (r *PushSubscription) subscribeWithPrefix(prefix string, context context.Co return } log.Println("Unable to handle GroupMe message type", contentType) + } else { + handler(r, channel, authToken, content) } - - handler(r, channel, authToken, content) }) return nil