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

实现了Jt808SessionEventListener的onSessionRemove和onSessionClose方法,但是这个两个方法在终端关闭或闲置时,都会分别连续执行两次。 #84

Open
muchen2018 opened this issue Jan 3, 2025 · 1 comment

Comments

@muchen2018
Copy link

image

@hylexus
Copy link
Owner

hylexus commented Jan 3, 2025

调试一下 io.github.hylexus.jt.jt808.spec.session.DefaultJt808SessionManager#listeners 属性。

看看是否某个 listener 被重复添加了。

具体回调逻辑在 io.github.hylexus.jt.jt808.spec.session.DefaultJt808SessionManager#invokeListeners 这个方法。

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