Allowed search to recover after a connection failure

This commit is contained in:
Geomitron
2021-01-30 18:15:29 -05:00
parent 3078309d86
commit f2aae10987
3 changed files with 10 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ class SearchHandler implements IPCInvokeHandler<'song-search'> {
offset: search.offset
}, (err, response) => {
if (err) {
reject(err)
reject(err.message)
} else {
resolve(response.body)
}