Skip to content

Commit

Permalink
Fix zx_port_{wait,queue} packet count argument
Browse files Browse the repository at this point in the history
In the near future zx_port_{wait,queue} will not accept a count of zero.
Change all callers to call these functions with a count of one.

Change-Id: I1a3fbcbb051c1da674fd6080685abd8c26067170
Reviewed-on: https://chromium-review.googlesource.com/1015481
Commit-Queue: Garret Kelly <gdk@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551415}
  • Loading branch information
gkelly authored and Commit Bot committed Apr 17, 2018
1 parent ebd464c commit 409283e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/fuchsia/async_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ zx_status_t AsyncDispatcher::DispatchOrWaitUntil(zx_time_t deadline) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);

zx_port_packet_t packet = {};
zx_status_t status = zx_port_wait(port_.get(), deadline, &packet, 0);
zx_status_t status = zx_port_wait(port_.get(), deadline, &packet, 1);
if (status != ZX_OK)
return status;

Expand Down

0 comments on commit 409283e

Please sign in to comment.