Changeset 2310
- Timestamp:
- 06/29/07 13:12:46
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-transport-account.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r2309 r2310 1 2007-06-29 Philip Van Hoof <pvanhoof@gnome.org> 2 3 * Bugfix in TnyCamelTransportAccount: rewrote the prepare method 4 implementation 5 1 6 2007-06-29 Murray Cumming <murrayc@murrayc.com> 2 7 trunk/libtinymail-camel/tny-camel-transport-account.c
r2250 r2310 66 66 67 67 g_static_rec_mutex_lock (apriv->service_lock); 68 /* camel_session_get_service can launch GUI things */ 69 if (apriv->session && apriv->url_string) 70 { 68 69 if (!apriv->service && reservice) 70 { 71 if (apriv->service && CAMEL_IS_SERVICE (apriv->service)) 72 { 73 camel_object_unref (CAMEL_OBJECT (apriv->service)); 74 apriv->service = NULL; 75 } 76 71 77 if (camel_exception_is_set (apriv->ex)) 72 78 camel_exception_clear (apriv->ex); 73 74 if (apriv->service && CAMEL_IS_OBJECT (apriv->service))75 camel_object_unref (CAMEL_OBJECT (apriv->service));76 79 77 80 apriv->service = camel_session_get_service … … 79 82 apriv->type, apriv->ex); 80 83 81 if (apriv->service) 84 if (apriv->service && !camel_exception_is_set (apriv->ex)) 85 { 82 86 apriv->service->data = self; 87 apriv->service->connecting = (con_op) NULL; 88 apriv->service->disconnecting = (con_op) NULL; 89 apriv->service->reconnecter = (con_op) NULL; 90 apriv->service->reconnection = (con_op) NULL; 91 92 } else if (camel_exception_is_set (apriv->ex) && apriv->service) 93 { 94 g_warning ("Must cleanup service pointer\n"); 95 apriv->service = NULL; 96 } 83 97 84 98 } else { … … 168 182 g_static_rec_mutex_lock (apriv->service_lock); 169 183 /* camel_service_connect can launch GUI things */ 170 if (!camel_service_connect (apriv->service, &ex)) 184 185 if (!apriv->service || !camel_service_connect (apriv->service, &ex)) 171 186 { 172 187 if (camel_exception_is_set (&ex))
