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

fix: set up events before calling Zniffer.init() #3745

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

AlCalzone
Copy link
Member

fixes: #3744

Comment on lines -137 to -138
this.onError(error)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being called anyways in the error event, so this would just log twice

logger.info('Retrying in 5s...')

await this.close()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prevents reusing the Zniffer instance. Alternatively, constructing the Zniffer instance would have to be done in this.init() too.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9356274559

Details

  • 0 of 19 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 21.169%

Changes Missing Coverage Covered Lines Changed/Added Lines %
api/lib/ZnifferManager.ts 0 19 0.0%
Totals Coverage Status
Change from base Build 9347582370: 0.006%
Covered Lines: 3899
Relevant Lines: 19587

💛 - Coveralls

@robertsLando robertsLando merged commit 66ff0e3 into master Jun 4, 2024
9 checks passed
@robertsLando robertsLando deleted the fix-zniffer-init branch June 4, 2024 08:33
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

Successfully merging this pull request may close these issues.

[bug] Zniffer init never resolves/rejects if stick is unplugged
4 participants