Changeset 2405
- Timestamp:
- 08/05/07 10:14:08 (1 year ago)
- Files:
-
- plugins/opie-sync/src/opie_sync.c (modified) (4 diffs)
- plugins/opie-sync/src/opie_sync.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/opie-sync/src/opie_sync.c
r2404 r2405 219 219 OSyncError *error = NULL; 220 220 221 g_mutex_lock(env->plugin_env->plugin_mutex); 222 221 223 if(!env->plugin_env->connected) { 222 224 /* We only want to connect once per session */ 223 if (!_connectDevice(env->plugin_env, &error)) 225 if (!_connectDevice(env->plugin_env, &error)) { 226 g_mutex_unlock(env->plugin_env->plugin_mutex); 224 227 goto error; 228 } 225 229 env->plugin_env->connected = TRUE; 226 230 } … … 230 234 opie_fetch_file(env->plugin_env, OPIE_OBJECT_TYPE_CATEGORY, OPIE_CATEGORY_FILE, &env->plugin_env->categories_doc, NULL); 231 235 } 236 237 g_mutex_unlock(env->plugin_env->plugin_mutex); 232 238 233 239 /* pull the required data back */ … … 611 617 612 618 env->backuppath = NULL; 619 env->plugin_mutex = g_mutex_new(); 613 620 614 621 /* Contacts sink */ … … 670 677 g_free(env->uidmap_file); 671 678 679 g_mutex_free(env->plugin_mutex); 680 672 681 g_free(env->contact_env); 682 g_free(env->todo_env); 683 g_free(env->event_env); 684 g_free(env->note_env); 673 685 g_free(env); 674 686 plugins/opie-sync/src/opie_sync.h
r2115 r2405 82 82 GTree* uidmap; 83 83 char* uidmap_file; 84 85 GMutex* plugin_mutex; 84 86 }; 85 87
