evolution-data-server r9759 - branches/EXCHANGE_MAPI_BRANCH/servers/mapi
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9759 - branches/EXCHANGE_MAPI_BRANCH/servers/mapi
- Date: Mon, 17 Nov 2008 05:16:47 +0000 (UTC)
Author: msuman
Date: Mon Nov 17 05:16:47 2008
New Revision: 9759
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9759&view=rev
Log:
MAPI - Lock the session before attempting to close the connection to the server.
Modified:
branches/EXCHANGE_MAPI_BRANCH/servers/mapi/ChangeLog
branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-connection.c
branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-folder.c
Modified: branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-connection.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-connection.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-connection.c Mon Nov 17 05:16:47 2008
@@ -141,8 +141,10 @@
void
exchange_mapi_connection_close ()
{
+ LOCK();
global_mapi_session = NULL;
MAPIUninitialize ();
+ UNLOCK();
/* TODO : Return status. get last error ? */
}
Modified: branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-folder.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-folder.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/servers/mapi/exchange-mapi-folder.c Mon Nov 17 05:16:47 2008
@@ -129,8 +129,10 @@
exchange_mapi_peek_folder_list ()
{
LOCK ();
- if (!folder_list && !exchange_mapi_get_folders_list (&folder_list))
- g_warning ("Get folders list call failed \n\a");
+ if (!folder_list)
+ exchange_mapi_get_folders_list (&folder_list);
+ if (!folder_list)
+ g_warning ("Get folders list call failed \n");
UNLOCK ();
return folder_list;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]