Reset current network when the map is updated

This commit is contained in:
Ruben S. Montero committed 2014-04-22 12:24:21 +02:00
1 parent 61d2431dea
commit 9d76ac0961
1 file changed
+4
+4
View File
@@ -140,6 +140,8 @@ int FixedLeases::add(const string& ip, const string& mac, int vid,
n_used++;
}
current = leases.begin();
return rc;
error_no_ip_mac:
@@ -217,6 +219,8 @@ int FixedLeases::remove(const string& ip, string& error_msg)
leases.erase(it);
current = leases.begin();
return rc;