Fix regression after move to GSimpleAsyncResult in camel_service_disconnect
authorMilan Crha <mcrha@redhat.com>
Tue, 7 Aug 2012 17:04:39 +0000 (19:04 +0200)
committerMilan Crha <mcrha@redhat.com>
Tue, 7 Aug 2012 17:04:39 +0000 (19:04 +0200)
commit2049ab201f4b8f936a6273860fcb591ff8db1a5b
tree764b174894996fb9ec0f436d5b1c124779fa01fe
parent7fef1c9cefcf33a6ec66e0fc15338cc08df13e47
Fix regression after move to GSimpleAsyncResult in camel_service_disconnect

IMAP provider called disconnect in its finalize method, it was all fine
until move to GSimpleAsyncResult, which requires "live" GObject, which
is not true when called from finalize, thus everything breaks.
Moving the disconnect call to dispose function fixes this.
This was recognized when creating a new IMAP account and querying
for authentication methods.
camel/providers/imap/camel-imap-store.c