diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-08-27 13:43:27 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-08-29 10:32:26 +0300 |
commit | 867ca173d6730b8d53b384adcc83900a047d18a1 (patch) | |
tree | df1be0672b73ef5601498875f6b2546d08c5098c /gobex | |
parent | a3fd6fe629f3477d4029a514b8856eca35faf038 (diff) | |
download | bluez-867ca173d6730b8d53b384adcc83900a047d18a1.tar.gz |
gobex: Fix warning if g_obex_resume is called when disconnected
Diffstat (limited to 'gobex')
-rw-r--r-- | gobex/gobex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c index 16a4aae9c..e7b081ff9 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -514,7 +514,7 @@ static void enable_tx(GObex *obex) if (obex->suspended) return; - if (obex->write_source > 0) + if (!obex->io || obex->write_source > 0) return; cond = G_IO_OUT | G_IO_HUP | G_IO_ERR | G_IO_NVAL; |