Skip to content

Conversation

@rejas
Copy link
Collaborator

@rejas rejas commented Jan 22, 2023

Async node_helper dont have to finish immediately in loadModules. So the start callback in the app.js with the config isnt called for some time. But the electron ready event can already be fired in the meantime.

This lead to the electron app starting but without a config (which is provded by the node_helper callback) therefor crashing.

This PR fixes #2487 by moving the callback call out of the loadModules block, therefor the config is provided in time.

If any new async node_helper doesnt like this, we will see it :-)

veeck added 2 commits January 22, 2023 08:44
otherwise electron calls its init functions even though the config isnt loaded yet
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2023

Codecov Report

Merging #3021 (66ddc09) into develop (2e2962d) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #3021      +/-   ##
===========================================
+ Coverage    21.76%   21.84%   +0.08%     
===========================================
  Files           52       52              
  Lines        11441    11442       +1     
===========================================
+ Hits          2490     2500      +10     
+ Misses        8951     8942       -9     
Impacted Files Coverage Δ
js/app.js 82.46% <100.00%> (+0.05%) ⬆️
modules/default/updatenotification/node_helper.js 90.27% <0.00%> (+12.50%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@rejas rejas requested a review from khassel January 26, 2023 11:51
@khassel khassel merged commit ed90f05 into MagicMirrorOrg:develop Jan 26, 2023
@rejas rejas deleted the bugfix/2487 branch January 26, 2023 18:51
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.

3 participants