gofinance / ib

Pure Go interface to Interactive Brokers IB API
386 stars 120 forks source link

Fixes defer block not executed in manager #26

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.

nothize commented 7 years ago

Switch to https://github.com/gofinance/ib/pull/28 as that freeze the commit at branch fix_manager.