Skip to content

Commit 1cf0caa

Browse files
committed
fini_hook should clear after executed
1 parent 8791f72 commit 1cf0caa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

photon.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ int fini() {
131131
for (auto h : get_hook_vector()) {
132132
h.fire();
133133
}
134+
get_hook_vector().clear();
134135
#ifdef __linux__
135136
FINI_IO(LIBAIO, libaio_wrapper)
136137
FINI_IO(SOCKET_EDGE_TRIGGER, et_poller)

0 commit comments

Comments
 (0)