From 867ca173d6730b8d53b384adcc83900a047d18a1 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 27 Aug 2014 13:43:27 +0300 Subject: [PATCH] gobex: Fix warning if g_obex_resume is called when disconnected --- gobex/gobex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3