1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

relay: don't remove relay from config when the binding fails (closes #225), add options "stop" and "restart" in command /relay

This commit is contained in:
Sébastien Helleu
2014-11-02 11:16:39 +01:00
parent a2c7420262
commit e85ae88b25
21 changed files with 587 additions and 276 deletions
+1 -9
View File
@@ -546,15 +546,7 @@ relay_server_new (const char *protocol_string, enum t_relay_protocol protocol,
new_server->start_time = 0;
new_server->last_client_disconnect = 0;
if (!relay_server_create_socket (new_server))
{
if (new_server->protocol_string)
free (new_server->protocol_string);
if (new_server->protocol_args)
free (new_server->protocol_args);
free (new_server);
return NULL;
}
relay_server_create_socket (new_server);
new_server->prev_server = NULL;
new_server->next_server = relay_servers;