projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use threads for TCP connections.
[tinc]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
fecb48d
..
cf5ec1b
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-78,8
+78,8
@@
void free_connection(connection_t *c) {
if(c->buffer)
bufferevent_free(c->buffer);
if(c->buffer)
bufferevent_free(c->buffer);
- if(
event_initialized(&c->inevent)
)
-
event_del(&c->inevent
);
+ if(
c->thread
)
+
thread_destroy(&c->thread
);
free(c);
}
free(c);
}