agent::on_action_takes(): Call die() only if not dead

This commit is contained in:
Petr Baudis 2011-11-29 23:11:59 +01:00
parent ded047fb40
commit 5dcf54448e

View file

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