|
From: Paul E. <blu...@bl...> - 2009-09-27 10:42:32
|
Hi all, I've just recently changed opie-sync to do the connection to the device in a main sink rather than checking if it needed to be done within each objtype sink. However I have come accross some behaviour that I don't understand. It seems the main sink only connects after all of the objtype sinks have connected. In my case I need to connect to the device, and then after that I need to determine for each objtype whether slow-sync is required; this latter task needs to be done at the connect stage I believe. I don't think the way it works now will let me do that without going back to having the main connect logic in each objtype sink's connect function; but if I do go back I can't retrieve a few stored values that I am (at the moment) putting into the main sink's state db. I assume this connect order is intentional. If so, what is the reason for doing it this way? Thanks, Paul |