From b3bd48edfc1aab0a9dc64bfa4c380d845d218e73 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 25 Apr 2003 23:50:34 +0000 Subject: 2003-04-25 Havoc Pennington test suite is slightly hosed at the moment, will fix soon * bus/connection.c (bus_connections_expire_incomplete): fix to properly disable the timeout when required (bus_connection_set_name): check whether we can remove incomplete connections timeout after we complete each connection. * dbus/dbus-mainloop.c (check_timeout): fix this up a bit, probably still broken. * bus/services.c (bus_registry_acquire_service): implement max number of services owned, and honor allow/deny rules on which services a connection can own. * bus/connection.c (bus_connection_get_policy): report errors here * bus/activation.c: implement limit on number of pending activations --- dbus/dbus-timeout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dbus/dbus-timeout.c') diff --git a/dbus/dbus-timeout.c b/dbus/dbus-timeout.c index 74210f9a..1a2d2965 100644 --- a/dbus/dbus-timeout.c +++ b/dbus/dbus-timeout.c @@ -124,6 +124,8 @@ void _dbus_timeout_set_interval (DBusTimeout *timeout, int interval) { + _dbus_assert (interval >= 0); + timeout->interval = interval; } -- cgit