fix batch pump events bug on ios, process only one event per MessagePump call.