[server] Fix crash on M1 macs

master
Brad Cornes 2021-09-10 12:12:24 +01:00
parent 6812188323
commit 6d88a5c31c
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ exports.unsubscribe = (dir, fn, opts) => {
function resolve() {
// Find most specific flavor first
var list = prebuilds[platform + '-' + arch]
if (!list) return
var builds = Object.keys(list)
var parsed = builds.map(parseTags)
var candidates = parsed.filter(matchTags(runtime, abi))