From: <dg...@su...> - 2009-01-28 13:42:57
|
Author: bellmich Date: Wed Jan 28 14:41:31 2009 New Revision: 903 URL: http://libsyncml.opensync.org/changeset/903 Log: If the server closes the connection before the client can do this then the disconnect command of the client fails but the client is disconnected. Modified: trunk/libsyncml/transports/obex_client.c Modified: trunk/libsyncml/transports/obex_client.c ============================================================================== --- trunk/libsyncml/transports/obex_client.c Wed Jan 28 14:39:46 2009 (r902) +++ trunk/libsyncml/transports/obex_client.c Wed Jan 28 14:41:31 2009 (r903) @@ -1089,7 +1089,7 @@ "The disconnect request was not accepted (%i).", result); goto error; - } else if (result == 0 && !env->busy) { + } else if (result == 0 && !env->busy && !env->isDisconnected) { smlErrorSet(&error, SML_ERROR_GENERIC, "The disconnect request was timed out."); goto error; |