On Wed, Aug 01, 2007 at 04:12:36PM +0100, Jacek Nykis wrote:
> I have finally managed to sync my blackberry pearl's contacts on kubuntu
> using
> opensync plugin (CVS), multisync (package) and CVS version of barry.
> Unfortunately there is small error on the end:
>
> All clients have written
> Member 1 of type file-sync just disconnected
> Command: b 00000000: 00 00 08 00 0b 09 01
> 00 ........
>
> Member 2 of type barry-sync had an error while calling sync done: Socket:
> unhandled packet in Packet()
I'm not sure why this happens, but doing another probe seems to fix
it in my tests. I've attached a patch.
I'm still researching as to exactly why this is happening, but this
should make your plugin testing more reliable.
Thanks,
- Chris
diff -u -r1.10 environment.cc
--- opensync-plugin/src/environment.cc 27 Jul 2007 23:55:25 -0000 1.10
+++ opensync-plugin/src/environment.cc 2 Aug 2007 03:15:29 -0000
@@ -211,6 +211,12 @@
void BarryEnvironment::Reconnect()
{
Disconnect();
+
+ Barry::Probe probe;
+ int i = probe.FindActive(m_ProbeResult.m_pin);
+ if( i != -1 )
+ m_ProbeResult = probe.Get(i);
+
DoConnect();
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Barry-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/barry-devel