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/module error #1175

Merged
merged 3 commits into from
May 3, 2022
Merged

Fix/module error #1175

merged 3 commits into from
May 3, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented May 3, 2022

Did you run make format && make check?
yes

Fixes #1161

Changes:

  • Re add mainModule.Wait

How to test this PR:

  1. Build make build
  2. Make two configs with ./skywire-cli config gen -irt
  3. Run hypervisor A ./skywire-visor -c skywire-config.json
  4. On new terminal Run hypervisor B ./skywire-visor -c skywire-config2.json
  5. See the error

ersonp added 3 commits May 3, 2022 13:35
This commit fixes the issue where the visor would continue working even if a module errored.

We use the mainModule.Wait(ctx) method in order to catch the error in the main module and stop the visor.
@0pcom 0pcom self-requested a review May 3, 2022 15:01
@0pcom 0pcom merged commit b7924dc into skycoin:develop May 3, 2022
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.

2 participants