From: Luiz Augusto von Dentz <luiz.dentz-...@nokia.com> Old code use to have just state member but now it is separated into state and mode. --- lib/obex_object.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/obex_object.c b/lib/obex_object.c index 502cd6c..ddbd93d 100644 --- a/lib/obex_object.c +++ b/lib/obex_object.c @@ -1067,9 +1067,9 @@ int obex_object_resume(obex_t *self, obex_object_t *object) if (object->first_packet_sent && !object->continue_received) return 0; - if (self->state & MODE_SRV) { + if (self->mode == MODE_SRV) { forcefinalbit = TRUE; - if ((self->state & ~MODE_SRV) == STATE_REC) + if (self->state == STATE_REC) allowfinalcmd = FALSE; } -- 1.7.1 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users