mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Connection communication in separate thread
This commit is contained in:
parent
ec3897b29b
commit
92940b6054
4 changed files with 92 additions and 7 deletions
6
agent.cc
6
agent.cc
|
@ -51,6 +51,8 @@ agent::on_senses_update(void)
|
|||
agent::~agent()
|
||||
{
|
||||
tile->on_agent_leave(*this);
|
||||
if (conn)
|
||||
delete conn;
|
||||
if (conn) {
|
||||
conn->cancel();
|
||||
conn = NULL;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue