Skip to content

Commit

Permalink
webextensions: lock session in child watch handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenstridge committed Mar 4, 2022
1 parent 7fddbde commit a21ad86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webextensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,13 @@ on_server_exited (GPid pid,
gint status,
gpointer user_data)
{
WebExtensionsSession *we_session = user_data;
Session *session = user_data;
WebExtensionsSession *we_session = (WebExtensionsSession *)session;

SESSION_AUTOLOCK (session);
we_session->child_pid = -1;
we_session->child_watch_id = 0;
session_close ((Session *)we_session, TRUE);
session_close (session, TRUE);
}

static gboolean
Expand Down

0 comments on commit a21ad86

Please sign in to comment.