[folks] dummy: Don’t modify a HashMap while itera ting over it
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] dummy: Don’t modify a HashMap while itera ting over it
- Date: Wed, 25 Jun 2014 22:24:16 +0000 (UTC)
commit 6c2b65a8fd3480b84b646d8e24a8a136a701f4b5
Author: Renato Araujo Oliveira Filho <renatox gmail com>
Date: Wed Jun 25 19:59:00 2014 +0000
dummy: Don’t modify a HashMap while iterating over it
Iterate over a copy instead.
https://bugzilla.gnome.org/show_bug.cgi?id=732244
NEWS | 1 +
backends/dummy/lib/dummy-backend.vala | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 359a2d2..cb938d0 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Major changes:
file systems, such as Tinycorelinux
Bugs fixed:
+ • Bug 732244 — Fail to unprepare stores
API changes:
diff --git a/backends/dummy/lib/dummy-backend.vala b/backends/dummy/lib/dummy-backend.vala
index 2122559..a7c5062 100644
--- a/backends/dummy/lib/dummy-backend.vala
+++ b/backends/dummy/lib/dummy-backend.vala
@@ -282,7 +282,8 @@ public class FolksDummy.Backend : Folks.Backend
this._prepare_pending = true;
this.freeze_notify ();
- foreach (var persona_store in this._enabled_persona_stores.values)
+ var enabled_stores = this._enabled_persona_stores.values.to_array ();
+ foreach (var persona_store in enabled_stores)
{
this._disable_persona_store (persona_store);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]