diff options
Diffstat (limited to 'camel/camel-remote-store.c')
-rw-r--r-- | camel/camel-remote-store.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c index 00f8dce4f4..e1818e47c0 100644 --- a/camel/camel-remote-store.c +++ b/camel/camel-remote-store.c @@ -129,7 +129,7 @@ camel_remote_store_finalise (CamelObject *object) CamelRemoteStore *remote_store = CAMEL_REMOTE_STORE (object); CamelService *service = CAMEL_SERVICE (object); - if (service->connected) { + if (service->status == CAMEL_SERVICE_CONNECTED) { CamelException ex; camel_exception_init (&ex); @@ -277,9 +277,6 @@ remote_connect (CamelService *service, CamelException *ex) store->ostream = tcp_stream; store->istream = camel_stream_buffer_new (tcp_stream, CAMEL_STREAM_BUFFER_READ); - /* Okay, good enough for us */ - CAMEL_SERVICE (store)->connected = TRUE; - /* Add a timeout so that we can hopefully prevent getting disconnected */ /* (Only if the implementation supports it) */ if (CRSC (store)->keepalive) { |