Skip to content

Commit f61b7c1

Browse files
committed
新增:Mac(Apple芯片)支持声音克隆和声音合成
1 parent 002ae9a commit f61b7c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

electron/mapi/server/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ ipcMain.handle('server:ping', async (event, serverInfo: ServerInfo) => {
4141
return await module.ping()
4242
} catch (e) {
4343
Log.error('mapi.server.ping.error', e)
44-
throw new Error(e)
4544
}
45+
return false
4646
})
4747

4848
ipcMain.handle('server:stop', async (event, serverInfo: ServerInfo) => {
@@ -77,7 +77,7 @@ ipcMain.handle('server:callFunction', async (event, serverInfo: ServerInfo, meth
7777
return await func.bind(module)(serverInfo, data)
7878
} catch (e) {
7979
// to string
80-
if(typeof e === 'object') {
80+
if (typeof e === 'object') {
8181
e = e.toString()
8282
}
8383
Log.error('mapi.server.callFunction.error', e)

0 commit comments

Comments
 (0)