From ce0b2bdc0718cfaec58d9809bd97a123a9fe07a4 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 20 Sep 2009 19:30:31 +0100 Subject: [PATCH] device-manager: Fix the database write mode --- src/modules/module-device-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-device-manager.c b/src/modules/module-device-manager.c index 5abcc75..3f4418a 100644 --- a/src/modules/module-device-manager.c +++ b/src/modules/module-device-manager.c @@ -877,7 +877,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio data.data = e; data.size = sizeof(*e); - if (pa_database_set(u->database, &key, &data, FALSE) == 0) { + if (pa_database_set(u->database, &key, &data, TRUE) == 0) { apply_entry(u, device, e); trigger_save(u); @@ -995,7 +995,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio data.data = e2; data.size = sizeof(*e2); - if (pa_database_set(u->database, &key, &data, FALSE)) + if (pa_database_set(u->database, &key, &data, TRUE)) pa_log_warn("Could not save device"); } @@ -1022,7 +1022,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio data.data = e; data.size = sizeof(*e); - if (pa_database_set(u->database, &key, &data, FALSE)) + if (pa_database_set(u->database, &key, &data, TRUE)) pa_log_warn("Could not save device"); trigger_save(u); -- 2.7.4