gofinance / ib

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

Fixing data race and potential dead-lock #44

Open dimchansky opened 3 years ago

dimchansky commented 3 years ago

It duplicates #36 , but also fixes potential dead-lock issue. If for some reason for/select loop exits before preLoop() returns non-nil error, then writing to channel errors <- err will hang forever.