Skip to content

Commit 35eaccb

Browse files
committed
fix: dont throw error when Xvfb is already running (which is fine)
1 parent a10bcc6 commit 35eaccb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/commands/xvfb.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ export default class Xvfb {
7777

7878
if (code === 1) {
7979
const error = stderr.match(/\(EE\) (?!\(EE\))(.+?)$/m)[1] || stderr
80+
if (stderr.includes('already active for display')) {
81+
console.warn(error) // eslint-disable-line no-console
82+
return
83+
}
84+
8085
throw new BrowserError(`Failed to start Xvfb${error ? ', ' : ''}${error}`)
8186
}
8287
})

0 commit comments

Comments
 (0)