mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 06:58:01 +02:00
socket_handle_watch: break when found is TRUE in server
skip useless loop when `found` is TRUE. This MR is a response to issue #431. Signed-off-by: Aiknow <shixin21@huawei.com>
This commit is contained in:
parent
ce5c01ae41
commit
4f6e029598
1 changed files with 4 additions and 1 deletions
|
|
@ -172,7 +172,10 @@ socket_handle_watch (DBusWatch *watch,
|
|||
for (i = 0 ; i < socket_server->n_fds ; i++)
|
||||
{
|
||||
if (socket_server->watch[i] == watch)
|
||||
found = TRUE;
|
||||
{
|
||||
found = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
_dbus_assert (found);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue