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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user