Skip to content

window close event does not get triggered anymore #913

Open
@bastimeyer

Description

@bastimeyer

Checklist

Streamlink Twitch GUI version

v2.2.0

Streamlink version

No response

Operating system, environment and configuration details

.

Description

Since the upgrade of NW.js from 0.64.1 to 0.68.1 in 3d641ad (part of the v2.2.0 release), the close event on the main application window doesn't get triggered anymore, and neither seem SIGTERM/SIGINT signal callbacks on the global process instance (not used in the application code). This means that the confirmation dialog won't be shown when trying to close the application while streams are still running.

// listen for the close event and show the dialog instead of strictly shutting down
nwWindow.on( "close", function() {
if ( location.pathname !== "/index.html" ) {
nwWindow.close( true );
return;
}
try {
setVisibility( true );
setFocused( true );
nwjs.close();
} catch ( e ) {
quit();
}
});

I've already had a quick look at the issue, but this needs more debugging with a proper reproduction, so the issue can be reported upstream.

Debug log

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions