support sources without pid

This commit is contained in:
Vendicated 2023-10-21 22:00:28 +02:00
parent 943232387d
commit e734741fb7
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -38,7 +38,7 @@ function obtainVenmic() {
ipcMain.handle(IpcEvents.VIRT_MIC_LIST, () => {
const audioPid = getRendererAudioServicePid();
return obtainVenmic()
?.list(["application.process.id", "application.name"])
?.list()
.filter(s => s["application.process.id"] !== audioPid)
.map(s => s["application.name"]);
});