Fixup r277011 - wrong use of infinite timeout

The commit accidentally switched a timed wait on a condition variable into an infinite timeout.
Change that back. Android tests were timeing out without this.

llvm-svn: 277133
This commit is contained in:
Pavel Labath 2016-07-29 10:34:52 +00:00
parent cb780b32a3
commit 12fc675212

View File

@ -1022,7 +1022,7 @@ Process::WaitForProcessToStop(const std::chrono::microseconds &timeout, EventSP
while (state != eStateInvalid)
{
EventSP event_sp;
state = WaitForStateChangedEvents(std::chrono::milliseconds(0), event_sp, hijack_listener_sp);
state = WaitForStateChangedEvents(timeout, event_sp, hijack_listener_sp);
if (event_sp_ptr && event_sp)
*event_sp_ptr = event_sp;