ref: 20d0f503988c23f34bfb8629451e7549b169d75f
parent: 1680a64e775713478597248e5ecdf90aa1ef33ee
author: Alex Mayfield <alexmax2742@gmail.com>
date: Tue Feb 21 18:24:20 EST 2017
Compare against time delta in expect loop This way, we're not bitten by a wrapping global timer in ~49 days
--- a/src/i_midipipe.c
+++ b/src/i_midipipe.c
@@ -189,7 +189,7 @@
return true;
// Continue looping as long as we don't exceed our maximum wait time.
- } while (start + MIDIPIPE_MAX_WAIT > I_GetTimeMS());
+ } while (I_GetTimeMS() - start <= MIDIPIPE_MAX_WAIT);
fail:
// TODO: Deal with the wedged process?