Co-authored-by: ggarber <[email protected]>
@@ -172,7 +172,7 @@ int turnports_allocate(turnports *tp) {
while (1) {
- if (tp->high <= tp->low) {
+ if ((tp->high - tp->low) == 0) {
TURN_MUTEX_UNLOCK(&tp->mutex);
return -1;
}