Skip to content

Commit 0fcee0f

Browse files
Coldwingslihuiba
authored andcommitted
fini_hook should clear after executed (alibaba#839)
1 parent 8212dd3 commit 0fcee0f

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
@@ -148,6 +148,7 @@ int fini() {
148148
for (auto h : get_hook_vector()) {
149149
h.fire();
150150
}
151+
get_hook_vector().clear();
151152
#ifdef __linux__
152153
FINI_IO(LIBAIO, libaio_wrapper)
153154
FINI_IO(SOCKET_EDGE_TRIGGER, et_poller)

0 commit comments

Comments
 (0)