igrigorik / em-jack

An Evented Beanstalk Client
http://dj2.github.com/jack
Other
64 stars 17 forks source link

Setting tube in initializer does not work correctly #10

Open mloughran opened 12 years ago

mloughran commented 12 years ago

If the connection does not connect immediately (for example if the 2nd attempt succeeds) then the tube specified in initializer will not be used.

This is because the @used_tube instance variable is set in a callback on the connection which won't be called in the case that the first connection attempt fails (see #9).