diff options
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatio.c b/gatchat/gatio.c index 1aa23344..55a58491 100644 --- a/gatchat/gatio.c +++ b/gatchat/gatio.c @@ -228,7 +228,7 @@ void g_at_io_unref(GAtIO *io) * destroyed already. We have to wait until the read_watcher * destroy function gets called */ - if (io->read_watch != 0) + if (io->read_watch > 0) io->destroyed = TRUE; else g_free(io); @@ -239,7 +239,7 @@ gboolean g_at_io_shutdown(GAtIO *io) if (io->channel == NULL) return FALSE; - if (io->read_watch) + if (io->read_watch > 0) g_source_remove(io->read_watch); return TRUE; |