Connection communication in separate thread

This commit is contained in:
Petr Baudis 2011-11-27 01:24:52 +01:00
parent ec3897b29b
commit 92940b6054
4 changed files with 92 additions and 7 deletions

View file

@ -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;
}
};