Support reconnecting to agents

Agents do not die immediately on disconnect anymore. Instead, agent_id
is sent at birth and can be sent during negotiation to attach to a
disconnected agent.
This commit is contained in:
Petr Baudis 2011-12-08 02:01:56 +01:00
parent 417a5235a0
commit 8ae6051e97
4 changed files with 52 additions and 7 deletions

View file

@ -126,7 +126,6 @@ agent::on_action_takes(void)
return;
if (conn->error) {
if (!dead) die();
conn->cancel();
conn = NULL;
return;