From fd73ebe3aeea3cd454bba9c2ece9eb9e28aed0ab Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 25 Apr 2015 15:30:44 +1000 Subject: [PATCH] Send port number as a string on reconnect as most clients will be expecting it --- src/stratifier.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 00c9b000..f1cdf034 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1512,11 +1512,8 @@ static void reconnect_clients(sdata_t *sdata, const char *cmd) if (port) url = strsep(&port, ","); if (url && port) { - int port_no; - - port_no = strtol(port, NULL, 10); - JSON_CPACK(json_msg, "{sosss[sii]}", "id", json_null(), "method", "client.reconnect", - "params", url, port_no, 0); + JSON_CPACK(json_msg, "{sosss[ssi]}", "id", json_null(), "method", "client.reconnect", + "params", url, port, 0); } else JSON_CPACK(json_msg, "{sosss[]}", "id", json_null(), "method", "client.reconnect", "params");