From 0865f4e35c24f3d6d3870502a4aa491e2d19e5d2 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Fri, 7 Jun 2019 16:30:57 +0200 Subject: [PATCH] Improves comments --- cmd/xmpp_echo/xmpp_echo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/xmpp_echo/xmpp_echo.go b/cmd/xmpp_echo/xmpp_echo.go index fed97c3..94fc087 100644 --- a/cmd/xmpp_echo/xmpp_echo.go +++ b/cmd/xmpp_echo/xmpp_echo.go @@ -26,6 +26,8 @@ func main() { log.Fatalf("%+v", err) } + // If you pass the client to a connection manager, it will handle the reconnect policy + // for you automatically. cm := xmpp.NewClientManager(client, nil) err = cm.Start() // connection can be stopped with cm.Stop()