Starter unroutes removed or changed connections before loading and routing new ones

This commit is contained in:
Tobias Brunner
2012-10-18 14:42:11 +02:00
parent 21037942e8
commit 9e730ef9df
3 changed files with 19 additions and 0 deletions
+8
View File
@@ -594,6 +594,10 @@ int main (int argc, char **argv)
{
if (starter_charon_pid())
{
if (conn->startup == STARTUP_ROUTE)
{
starter_stroke_unroute_conn(conn);
}
starter_stroke_del_conn(conn);
}
conn->state = STATE_TO_ADD;
@@ -651,6 +655,10 @@ int main (int argc, char **argv)
{
if (starter_charon_pid())
{
if (conn->startup == STARTUP_ROUTE)
{
starter_stroke_unroute_conn(conn);
}
starter_stroke_del_conn(conn);
}
}