vpn: Cleanup vpn connections when vpnd dies
[platform/upstream/connman.git] / plugins / vpn.c
index 82fbdb5..c41722c 100644 (file)
@@ -1460,6 +1460,8 @@ static void vpnd_created(DBusConnection *conn, void *user_data)
 static void vpnd_removed(DBusConnection *conn, void *user_data)
 {
        DBG("connection %p", conn);
+
+       g_hash_table_remove_all(vpn_connections);
 }
 
 static void remove_connection(DBusConnection *conn, const char *path)