From f712f943ebe7b98478e0089d349f65c5f24ac511 Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Sat, 3 Jun 2017 00:44:11 +1000 Subject: [PATCH] safeguard more than 1 reply panic --- wechatMsg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wechatMsg.go b/wechatMsg.go index 13db0b2..ab52150 100644 --- a/wechatMsg.go +++ b/wechatMsg.go @@ -29,7 +29,8 @@ func (m *InWechatMsg) replyXML(xml string) { m.replied = true m.instantResponse <- xml } else { - log.Println("BUG::doubl reply for wechat message") + d := decryptToXML(xml) + log.Println("BUG::double reply for wechat message\n" + d + "\n") } }