Remove duplicate mstm tag in server-info reply

This commit is contained in:
Julien BLACHE 2010-09-18 22:50:26 +02:00
parent 8411aa48b7
commit f7c2bf756a

View File

@ -1174,7 +1174,7 @@ daap_reply_server_info(struct evhttp_request *req, struct evbuffer *evbuf, char
passwd = cfg_getstr(lib, "password");
name = cfg_getstr(lib, "name");
len = 169 + strlen(name);
len = 157 + strlen(name);
if (!supports_update)
len -= 9;
@ -1210,7 +1210,6 @@ daap_reply_server_info(struct evhttp_request *req, struct evbuffer *evbuf, char
dmap_add_int(evbuf, "mstt", 200); /* 12 */
dmap_add_int(evbuf, "mpro", mpro); /* 12 */
dmap_add_int(evbuf, "apro", apro); /* 12 */
dmap_add_int(evbuf, "mstm", 1800); /* 12 */
dmap_add_string(evbuf, "minm", name); /* 8 + strlen(name) */
dmap_add_int(evbuf, "mstm", DAAP_SESSION_TIMEOUT); /* 12 */