Diff between 52edd787fdaed77d59bb40494892754a451b675a and d9cff588be2dd17871a8c93577268373c7249fba
Changed Files
| File | Additions | Deletions | Status |
| obexd/src/obex.c | +2 | -1 | modified |
Full Patch
diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index a39a48d..38ff438 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -332,7 +332,8 @@ static int obex_read_stream(struct obex_session *os, obex_t *obex,
if (os->size == OBJECT_SIZE_DELETE)
os->size = OBJECT_SIZE_UNKNOWN;
- if (os->pending > 0)
+ /* If there's something to write and we are able to write it */
+ if (os->pending > 0 && os->driver)
goto write;
size = OBEX_ObjectReadStream(obex, obj, &buffer);