From: Luiz Augusto von Dentz <[email protected]>
Also deliver ABORT signal so the user application can free whatever
resource being use to handle the request.
---
lib/obex_main.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/obex_main.c b/lib/obex_main.c
index 0a72c14..5f1f6e6 100644
--- a/lib/obex_main.c
+++ b/lib/obex_main.c
@@ -378,6 +378,13 @@ int obex_cancelrequest(obex_t *self, int nice)
obex_object_delete(object);
+ if (self->mode == MODE_SRV) {
+ self->state = STATE_IDLE;
+ obex_deliver_event(self, OBEX_EV_ABORT,
+ self->object->opcode, 0, TRUE);
+ return 0;
+ }
+
self->object->abort = TRUE;
self->state = STATE_REC;
--
1.7.1
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users