File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/web/src/db/adapters Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class WorkerWrappedAsyncDatabaseConnection<Config extends ResolvedWebSQLO
5555 * This lock will be held as long as this connection is open.
5656 * The `shareConnection` method should not be called on multiple tabs concurrently.
5757 */
58- await new Promise < void > ( ( lockObtained ) =>
58+ await new Promise < void > ( ( lockObtained , reject ) =>
5959 navigator . locks
6060 . request (
6161 `shared-connection-${ this . options . identifier } ` ,
@@ -78,8 +78,12 @@ export class WorkerWrappedAsyncDatabaseConnection<Config extends ResolvedWebSQLO
7878 } ) ;
7979 }
8080 )
81- // We aren't concerned with errors here
82- . catch ( ( ) => { } )
81+ // We aren't concerned with abort errors here
82+ . catch ( ( ex ) => {
83+ if ( ex . name != 'AbortError' ) {
84+ reject ( ex ) ;
85+ }
86+ } )
8387 ) ;
8488
8589 const newPort = await remote [ Comlink . createEndpoint ] ( ) ;
You can’t perform that action at this time.
0 commit comments