summaryrefslogtreecommitdiff
path: root/src/core/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/session.c')
-rw-r--r--src/core/session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/session.c b/src/core/session.c
index 94bedfb6..0f3d089c 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -277,10 +277,12 @@ static void session_restore_server(CONFIG_NODE *node)
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 = proto->server_init_connect(conn);
+ server->session_reconnect = TRUE;
signal_emit("session restore server", 2, server, node);
+
+ proto->server_connect(server);
}
}