server: remove the reconnect option (enabled by default)

This commit is contained in:
Shuanglei Tao
2019-07-05 23:05:09 +08:00
parent fd29928a9c
commit 0fc275f3a3
8 changed files with 7 additions and 45 deletions

View File

@@ -28,7 +28,6 @@
// initial message list
char initial_cmds[] = {
SET_WINDOW_TITLE,
SET_RECONNECT,
SET_PREFERENCES
};
@@ -45,9 +44,6 @@ send_initial_message(struct lws *wsi, int index) {
gethostname(buffer, sizeof(buffer) - 1);
n = sprintf((char *) p, "%c%s (%s)", cmd, server->command, buffer);
break;
case SET_RECONNECT:
n = sprintf((char *) p, "%c%d", cmd, server->reconnect);
break;
case SET_PREFERENCES:
n = sprintf((char *) p, "%c%s", cmd, server->prefs_json);
break;