Skip to content

Commit 496dd05

Browse files
authored
Merge pull request #3443 from yangyingchao/master
fix #3442
2 parents 3ff8fc8 + b65ca33 commit 496dd05

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/modules/sni/watcher.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ gboolean Watcher::handleRegisterHost(Watcher* obj, GDBusMethodInvocation* invoca
6767
}
6868
auto watch = gfWatchFind(obj->hosts_, bus_name, object_path);
6969
if (watch != nullptr) {
70-
g_dbus_method_invocation_return_error(
71-
invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS,
72-
"Status Notifier Host with bus name '%s' and object path '%s' is already registered",
73-
bus_name, object_path);
70+
g_warning("Status Notifier Host with bus name '%s' and object path '%s' is already registered",
71+
bus_name, object_path);
72+
sn_watcher_complete_register_item(obj->watcher_, invocation);
7473
return TRUE;
7574
}
7675
watch = gfWatchNew(GF_WATCH_TYPE_HOST, service, bus_name, object_path, obj);

0 commit comments

Comments
 (0)