mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-01 17:33:35 +02:00
connection::actions(): Close a connection attempting to connect to bad agent id
This commit is contained in:
parent
be10580643
commit
3aae38c1cf
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ connection::actions(int tick_id, class agent *agent)
|
|||
if (id < 0) {
|
||||
bump_negot:
|
||||
bump(); out_buf.append("\r\n");
|
||||
close(fd);
|
||||
} else {
|
||||
class agent *a2 = NULL;
|
||||
for (std::list<class agent *>::iterator ai = agents.begin(); ai != agents.end(); ai++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue