1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Check for unix sockets when reconnecting

This commit is contained in:
Guillaume BROGI 2014-12-03 09:43:24 +01:00
parent f0a6e5f82a
commit 86d263dd7d

View File

@ -253,6 +253,9 @@ static void sig_reconnect(SERVER_REC *server)
conn->port = server->connrec->port;
conn->password = g_strdup(server->connrec->password);
if (strchr(conn->address, '/') != NULL)
conn->unix_socket = TRUE;
server_reconnect_add(conn, (server->connect_time == 0 ? time(NULL) :
server->connect_time) + reconnect_time);
server_connect_unref(conn);