mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
MenuItem Click handlers lose connectivity when the socket connection is lost and re-established. #623
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @danatcofo on GitHub (Jan 28, 2021).
Originally assigned to: @GregorBiswanger on GitHub.
This is related to #442
Commenting on this issue can be found starting here.
the fix for #442 basically handled this same issue as it related to connectivity being lost to browser windows. Its been found that this same thing is happening to MenuItems as well.
You can reproduce this by :
and forcing the disconnect via CurrPorts which is a windows only app.
@Delpire commented on GitHub (Jan 28, 2021):
Some more information:
The menu items only stop working if the reason for the disconnect is
transport closed. Other disconnections likeping timeoutdid not cause the menu items to break.Additionally, it seems like its only the callbacks that are broken. MenuItems with roles like exit or toggling developer tools do not break.
@danatcofo commented on GitHub (Jan 28, 2021):
note: on linux/osx, use this to close the socket without killing the pid
https://www.scm.keele.ac.uk/staff/stan/2016/05/16/closing-sockets-without-killing-processes/
@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!