From 90e08a3db079ce84c9f49f46c48ef7c4b757a2e4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 26 Sep 2007 13:56:30 +0000 Subject: Protect ActivateService against executing a service twice if it is currently starting up --- hcid/dbus-error.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hcid/dbus-error.c') diff --git a/hcid/dbus-error.c b/hcid/dbus-error.c index 3f9a7ddc..f5a473e9 100644 --- a/hcid/dbus-error.c +++ b/hcid/dbus-error.c @@ -292,6 +292,11 @@ DBusHandlerResult error_disconnect_in_progress(DBusConnection *conn, DBusMessage return error_in_progress(conn, msg, "Disconnection in progress"); } +DBusHandlerResult error_service_start_in_progress(DBusConnection *conn, + DBusMessage *msg) +{ + return error_in_progress(conn, msg, "Service start in progress"); +} static const char *strsdperror(int err) { -- cgit