allow starter to initiate connections simultaneously (on auto=start)
[strongswan.git] / src / charon / control / interface_manager.c
index 700174c..4cc0581 100644 (file)
@@ -290,6 +290,13 @@ static status_t initiate(private_interface_manager_t *this,
        }
        charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
        
+       if (callback == NULL)
+       {
+               /* don't wait for a result if no callback is specified */
+               charon->bus->set_listen_state(charon->bus, FALSE);
+               return NEED_MORE;
+       }
+       
        /* wait until we get a result */
        while (TRUE)
        {