aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/conn.h
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2018-07-12 20:25:41 -0400
committerDeterminant <ted.sybil@gmail.com>2018-07-12 20:25:41 -0400
commitb98265d732bad274f66de66cb93d891e9c41a112 (patch)
tree38eb8c584a4a3ab65d833c25eac08fa1b3a6f179 /include/salticidae/conn.h
parent53f4c5137da249e5e955809ffe32afa3cf5c3522 (diff)
fix bugs
Diffstat (limited to 'include/salticidae/conn.h')
-rw-r--r--include/salticidae/conn.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h
index 589bf16..c8ccf31 100644
--- a/include/salticidae/conn.h
+++ b/include/salticidae/conn.h
@@ -212,9 +212,9 @@ class ConnPool {
protected:
/** close the connection and free all on-going or planned events. */
virtual void close() {
- ev_read.del();
- ev_write.del();
- ev_connect.del();
+ ev_read.clear();
+ ev_write.clear();
+ ev_connect.clear();
::close(fd);
fd = -1;
}