From: <svn...@op...> - 2009-04-20 14:05:18
|
Author: bellmich Date: Mon Apr 20 16:05:06 2009 New Revision: 1063 URL: http://libsyncml.opensync.org/changeset/1063 Log: make the behavior of libsyncml deterministic Modified: trunk/libsyncml/sml_manager.c Modified: trunk/libsyncml/sml_manager.c ============================================================================== --- trunk/libsyncml/sml_manager.c Mon Apr 20 16:04:32 2009 (r1062) +++ trunk/libsyncml/sml_manager.c Mon Apr 20 16:05:06 2009 (r1063) @@ -285,6 +285,12 @@ if (!smlManagerSessionAdd(manager, session, link_, &locerror)) goto error_free_header; smlSessionUnref(session); + /* FIXME: this event must be synchronized + * FIXME: bad design. + */ + while(smlManagerCheck(manager)) { + sleep(1); + } } else { /* SECURITY: let's check ResponseURI if supported * SECURITY: this is important to avoid replay attacks |