mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +02:00
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:
parent
417a5235a0
commit
8ae6051e97
4 changed files with 52 additions and 7 deletions
1
agent.cc
1
agent.cc
|
@ -126,7 +126,6 @@ agent::on_action_takes(void)
|
|||
return;
|
||||
|
||||
if (conn->error) {
|
||||
if (!dead) die();
|
||||
conn->cancel();
|
||||
conn = NULL;
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue