escape % signs

This commit is contained in:
Patrick Nagurny
2018-12-27 15:31:50 -05:00
parent cf1d312f9e
commit 291538e341
2 changed files with 4 additions and 0 deletions

View File

@@ -183,6 +183,7 @@ func unsubscribe(conn *websocket.Conn, key string, clientMap map[string][]*webso
}
func unsubscribeAll(conn *websocket.Conn) {
// TODO fix "concurrent map iteration and map write" error
for key, conns := range txSubscriptions {
newConns := conns[:0]
for _, c := range conns {