fix done() in connection callback
Merge pull request #11 from sh/1.0.0-alpha

fix done() in connection callback