gofinance / ib

Pure Go interface to Interactive Brokers IB API
392 stars 122 forks source link

Fixes defer block not executed in manager #28

Closed nothize closed 7 years ago

nothize commented 7 years ago

Since the errors channel has became nil already, reading from it in the defer block will be stuck forever.

Use another channel for this purpose and set errors to nil after the errors channel is closed immediately.