[tor-commits] [pluggable-transports/snowflake-webext] 10/15: refactor: simplify `pollBroker`