summaryrefslogtreecommitdiffstats
path: root/api/src/glfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/glfs.c')
-rw-r--r--api/src/glfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index a7b4962fb1d..bd70e7f610f 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -1240,7 +1240,7 @@ pub_glfs_fini (struct glfs *fs)
syncenv_destroy (ctx->env);
/* Join the poller thread */
- if (event_dispatch_destroy (ctx->event_pool) != 0)
+ if (event_dispatch_destroy (ctx->event_pool) < 0)
ret = -1;
}