mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +02:00
/UPGRADE - upgrade-on-the-fly feature. Currently only moves the active
server connections to the new irssi process, but that should be enough to never quit from IRC again :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2070 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ff2357f16b
commit
bbbb36cf19
11 changed files with 366 additions and 6 deletions
|
|
@ -196,10 +196,15 @@ static void server_connect_callback_readpipe(SERVER_REC *server)
|
|||
own_ip = ip == NULL ? NULL :
|
||||
(IPADDR_IS_V6(ip) ? conn->own_ip6 : conn->own_ip4);
|
||||
|
||||
if (ip != NULL)
|
||||
signal_emit("server connecting", 2, server, ip);
|
||||
handle = NULL;
|
||||
if (ip != NULL) {
|
||||
/* allow "server connecting" signal to create the
|
||||
connection handle */
|
||||
signal_emit("server connecting", 3, server, ip, &handle);
|
||||
if (handle == NULL)
|
||||
handle = net_connect_ip(ip, port, own_ip);
|
||||
}
|
||||
|
||||
handle = ip == NULL ? NULL : net_connect_ip(ip, port, own_ip);
|
||||
if (handle == NULL) {
|
||||
/* failed */
|
||||
if (iprec.error != 0 && net_hosterror_notfound(iprec.error)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue