~teemperor/geary/backport-test

Viewing all changes in revision 1105.

  • Committer: Jim Nelson
  • Date: 2013-10-25 01:00:09 UTC
  • Revision ID: git-v1:2401e005a6abfb50ac30aa1e1d70acb3d19eafff
Crash when connection denied or times out: Closes #7634

Previously ClientSession.connect_async() could leave the object in
a LOGGED_OUT state if the connection was denied by the server or
a timeout occurred when connecting.  This was bad because that
state indicates that the underlying connection may still be active
and needs an async close to occur.  Now connect_async() guarantees
that the connection is closed/disconnected/dead if it throws an
Error.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: