_sendAndReceiveMessage shouldn't refer to quotes
vhpoet opened this issue · 0 comments
vhpoet commented
_sendAndReceiveMessage shouldn't refer to quotes; it's more generic than that. The reference to quote_response should be in _getQuote. Also, this introduces a bug: if there's an error, the timeout isn't cleared and the incoming_message listener is never removed.
See this change.