summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tpool/tpool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpool/tpool.h b/tpool/tpool.h
index ae9baf236b0..239be53c27e 100644
--- a/tpool/tpool.h
+++ b/tpool/tpool.h
@@ -229,7 +229,7 @@ public:
m_aio.reset();
}
int bind(native_file_handle &fd) { return m_aio->bind(fd); }
- void unbind(const native_file_handle &fd) { m_aio->unbind(fd); }
+ void unbind(const native_file_handle &fd) { if (m_aio) m_aio->unbind(fd); }
int submit_io(aiocb *cb) { return m_aio->submit_io(cb); }
virtual void wait_begin() {};
virtual void wait_end() {};