int timeout_milliseconds)
{
_dbus_verbose ("start\n");
-
+
+ /* All callers should have checked this */
+ _dbus_assert (timeout_milliseconds >= -1);
+
HAVE_LOCK_CHECK (connection);
if (connection->n_outgoing == 0)
DBusDispatchStatus dstatus;
dbus_bool_t progress_possible;
+ /* All callers should have checked this */
+ _dbus_assert (timeout_milliseconds >= -1);
+
/* Need to grab a ref here in case we're a private connection and
* the user drops the last ref in a handler we call; see bug
* https://bugs.freedesktop.org/show_bug.cgi?id=15635
unsigned int flags,
int timeout_milliseconds)
{
+ /* All callers should have checked this */
+ _dbus_assert (timeout_milliseconds >= -1);
+
_dbus_assert (transport->vtable->do_iteration != NULL);
_dbus_verbose ("Transport iteration flags 0x%x timeout %d connected = %d\n",