if the load_uri fails, notify the listener that the repository is offline.
2002-02-18 Chris Toshok <toshok@ximian.com> * backend/pas/pas-book-factory.c (pas_book_factory_process_request): if the load_uri fails, notify the listener that the repository is offline. (partial fix for bug 20347) svn path=/trunk/; revision=15758
This commit is contained in:

committed by
Chris Toshok

parent
d866ac96b1
commit
e17651e635
@ -1,3 +1,10 @@
|
||||
2002-02-18 Chris Toshok <toshok@ximian.com>
|
||||
|
||||
* backend/pas/pas-book-factory.c
|
||||
(pas_book_factory_process_request): if the load_uri fails, notify
|
||||
the listener that the repository is offline. (partial fix for bug
|
||||
20347)
|
||||
|
||||
2002-02-18 Chris Toshok <toshok@ximian.com>
|
||||
|
||||
* backend/pas/pas-backend-ldap.c (create_dn_from_ecard): escape
|
||||
|
@ -282,8 +282,24 @@ pas_book_factory_process_request (PASBookFactory *factory,
|
||||
if (!backend)
|
||||
goto out;
|
||||
|
||||
if (!pas_backend_load_uri (backend, uri))
|
||||
if (!pas_backend_load_uri (backend, uri) ) {
|
||||
/* tell the listener that we failed to open the book */
|
||||
CORBA_exception_init (&ev);
|
||||
|
||||
GNOME_Evolution_Addressbook_BookListener_notifyBookOpened (
|
||||
listener, GNOME_Evolution_Addressbook_BookListener_RepositoryOffline,
|
||||
CORBA_OBJECT_NIL,
|
||||
&ev);
|
||||
|
||||
if (ev._major != CORBA_NO_EXCEPTION) {
|
||||
g_warning ("pas_book_respond_open: Exception "
|
||||
"responding to BookListener!\n");
|
||||
}
|
||||
|
||||
CORBA_exception_free (&ev);
|
||||
|
||||
goto out;
|
||||
}
|
||||
|
||||
pas_backend_add_client (backend, listener);
|
||||
|
||||
|
Reference in New Issue
Block a user