summaryrefslogtreecommitdiffhomepage
path: root/common-session.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-28 23:15:23 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-28 23:15:23 +0800
commit89c0b2a6d863e54bd0253355146f09b92edeccda (patch)
tree8bbc278b055fd573a9d40ba171d9031626551371 /common-session.c
parent31e379c300c69f1a628c74a3226346a48416e568 (diff)
Add cleanup
--HG-- branch : fastopen
Diffstat (limited to 'common-session.c')
-rw-r--r--common-session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common-session.c b/common-session.c
index 19247a8..be8f776 100644
--- a/common-session.c
+++ b/common-session.c
@@ -281,6 +281,8 @@ void session_cleanup() {
other session state is freed. */
remove_all_listeners();
+ remove_connect_pending();
+
while (!isempty(&ses.writequeue)) {
buf_free(dequeue(&ses.writequeue));
}