diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-19 14:43:16 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-19 14:43:16 +0000 |
commit | 6f7485b8fa6888d137243742cb31fa0848abe3ba (patch) | |
tree | fc8ad5d0a1df7d353ed70507a0cdced76696f84e /src/core/session.c | |
parent | 7437bbea5fa8025374b4b127d4a6e4e67d75ab94 (diff) | |
download | irssi-6f7485b8fa6888d137243742cb31fa0848abe3ba.zip |
net_connect*() contains now error parameter, so it can be used to properly
check the errno if connect() fails.
Added support for connecting to named UNIX sockets. Some cleanups with
session handling / server connecting as well.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2819 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/session.c')
-rw-r--r-- | src/core/session.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/session.c b/src/core/session.c index 4e7a832c..94bedfb6 100644 --- a/src/core/session.c +++ b/src/core/session.c @@ -276,11 +276,10 @@ static void session_restore_server(CONFIG_NODE *node) chatnet, password, nick); if (conn != NULL) { conn->reconnection = TRUE; + conn->connect_handle = g_io_channel_unix_new(handle); + conn->session_reconnect = TRUE; server = proto->server_connect(conn); - server->handle = net_sendbuffer_create(g_io_channel_unix_new(handle), 0); - server->session_reconnect = TRUE; - signal_emit("session restore server", 2, server, node); } } |