Skip to content

Commit e5051d0

Browse files
taylortomclaude
andcommitted
Fix: defer content module dependency to break circular deadlock
The adaptframework, content, and contentplugin modules formed a circular waitForModule chain causing all three to deadlock until the 60s timeout. Since adaptframework only needs content to tap an accessCheckHook, defer it with a non-blocking .then() instead of a blocking await. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 916a18c commit e5051d0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/AdaptFrameworkModule.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ class AdaptFrameworkModule extends AbstractModule {
7070
*/
7171
this.contentMigrations = []
7272

73-
const content = await this.app.waitForModule('content')
74-
content.accessCheckHook.tap(this.checkContentAccess.bind(this))
73+
this.app.waitForModule('content').then(content => {
74+
content.accessCheckHook.tap(this.checkContentAccess.bind(this))
75+
})
7576

7677
await this.installFramework()
7778

0 commit comments

Comments
 (0)