Skip to content

Commit 2907037

Browse files
committed
Add a catch to reduceAndConfigure in session cleanup
1 parent 58d5298 commit 2907037

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sessions/network.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ module.exports = class NetworkSession {
8282
this._sessionState.addResource('@network/configuration-' + dkeyString, null, () => {
8383
states.delete(this._sessionState)
8484
if (!states.size) this._networkStates.delete(dkeyString)
85-
if (!this._networker.closed) reduceAndConfigure(false)
85+
// reduceAndConfigure might fail here, but this is a sync cleanup function so the error is unimportant.
86+
if (!this._networker.closed) reduceAndConfigure(false).catch(() => {})
8687
})
8788
}
8889

0 commit comments

Comments
 (0)