Skip to content

Commit

Permalink
also catch for P2P RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
donchate committed Aug 2, 2021
1 parent 981e8ee commit 42e7b99
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/P2P.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,13 @@ const proposeRoundHandler = async (args, callback) => {

function p2p() {
return {
proposeRoundHash: (args, callback) => proposeRoundHandler(args, callback),
proposeRoundHash: (args, callback) => {
try {
proposeRoundHandler(args, callback);
} catch (error) {
callback(error, null);
}
},
};
}

Expand Down

0 comments on commit 42e7b99

Please sign in to comment.