Fix bug where rejected tx would not call back

feature/default_network_editable
Dan Finlay 9 years ago
parent ecfe720b8b
commit 9609593f13
  1. 15
      app/scripts/metamask-controller.js

@ -77,14 +77,13 @@ module.exports = class MetamaskController {
// handle rpc request
this.provider.sendAsync(request, function onPayloadHandled (err, response) {
if (err) {
return logger(err)
}
logger(null, request, response)
try {
stream.write(response)
} catch (err) {
logger(err)
logger(err, request, response)
if (response) {
try {
stream.write(response)
} catch (err) {
logger(err)
}
}
})

Loading…
Cancel
Save