mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-03 21:50:28 +01:00
Merge branch 'dbus-connection-timeout' into 'main'
dbus-connection: Avoid computing a negative timeout See merge request dbus/dbus!524
This commit is contained in:
commit
aa53ceb2b9
2 changed files with 4 additions and 2 deletions
|
|
@ -2510,7 +2510,7 @@ _dbus_connection_block_pending_call (DBusPendingCall *pending)
|
|||
*/
|
||||
_dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
|
||||
|
||||
_dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
|
||||
_dbus_memory_pause_based_on_timeout (-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -2519,7 +2519,7 @@ _dbus_connection_block_pending_call (DBusPendingCall *pending)
|
|||
pending,
|
||||
DBUS_ITERATION_DO_READING |
|
||||
DBUS_ITERATION_BLOCK,
|
||||
timeout_milliseconds - elapsed_milliseconds);
|
||||
-1);
|
||||
}
|
||||
|
||||
goto recheck_status;
|
||||
|
|
|
|||
|
|
@ -229,6 +229,8 @@ _dbus_platform_condvar_wait_timeout (DBusCondVar *cond,
|
|||
struct timespec end_time;
|
||||
int result;
|
||||
|
||||
_dbus_assert (timeout_milliseconds >= 0);
|
||||
|
||||
#ifdef HAVE_MONOTONIC_CLOCK
|
||||
if (have_monotonic_clock)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue