Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init了两个hook的话会触发两次重复的 #15

Closed
J3n5en opened this issue Aug 30, 2023 · 1 comment
Closed

init了两个hook的话会触发两次重复的 #15

J3n5en opened this issue Aug 30, 2023 · 1 comment

Comments

@J3n5en
Copy link
Contributor

J3n5en commented Aug 30, 2023

async.New(nil).Process(func() {
    hook.ReceiveParseAfter(email)
})

看起来会导致触发最后的一个hook x次,而跳过前面的hook,不清楚要怎么处理,有空麻烦处理一下,谢谢。

@Jinnrry
Copy link
Owner

Jinnrry commented Aug 30, 2023

嗯,确实有问题,hook是异步执行的,写代码的时候没注意。

https://github.com/Jinnrry/PMail/tree/hotfix-async

看下这个分支的代码还有问题不

Diff : #16

@Jinnrry Jinnrry closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants