Changeset 1044
- Timestamp:
- 06/09/06 06:13:06 (2 years ago)
- Files:
-
- 1 modified
-
branches/ipc-branch/osengine/osengine_engine.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/ipc-branch/osengine/osengine_engine.c
r1025 r1044 127 127 void send_engine_changed(OSyncEngine *engine) 128 128 { 129 if (!engine->is_initialized) 130 return; 131 129 132 OSyncMessage *message = osync_message_new(OSYNC_MESSAGE_ENGINE_CHANGED, 0, NULL); 130 133 /*FIXME: Handle errors here */ … … 517 520 } 518 521 519 engine->commands_from_self = osync_queue_new(path, error);520 engine->commands_to_self = osync_queue_new(path, error);521 if (!engine->commands_from_self || !engine->commands_to_self)522 goto error_free_paths;523 524 522 engine->syncing_mutex = g_mutex_new(); 525 523 engine->info_received_mutex = g_mutex_new(); … … 790 788 engine->is_initialized = TRUE; 791 789 792 osync_queue_create(engine->commands_from_self, NULL);793 794 790 osync_trace(TRACE_INTERNAL, "Spawning clients"); 795 791 GList *c = NULL; … … 815 811 } 816 812 817 osync_queue_set_message_handler(engine->commands_from_self, (OSyncMessageHandler)engine_message_handler, engine);818 if (!(engine->man_dispatch))819 osync_queue_setup_with_gmainloop(engine->commands_from_self, engine->context);820 821 813 osync_trace(TRACE_INTERNAL, "opening engine queue"); 814 if (!osync_queue_new_pipes(&engine->commands_from_self, &engine->commands_to_self, error)) { 815 osync_group_unlock(engine->group, TRUE); 816 osync_trace(TRACE_EXIT_ERROR, "osengine_init: %s", osync_error_print(error)); 817 return FALSE; 818 } 819 822 820 if (!osync_queue_connect(engine->commands_from_self, OSYNC_QUEUE_RECEIVER, 0 )) { 823 821 osync_group_unlock(engine->group, TRUE); … … 831 829 return FALSE; 832 830 } 831 832 osync_queue_set_message_handler(engine->commands_from_self, (OSyncMessageHandler)engine_message_handler, engine); 833 if (!(engine->man_dispatch)) 834 osync_queue_setup_with_gmainloop(engine->commands_from_self, engine->context); 833 835 834 836 osync_trace(TRACE_INTERNAL, "initializing clients");
