Skip to content

Commit

Permalink
Ignoring errors from "send"
Browse files Browse the repository at this point in the history
Summary: "send" returns "void" which means we do not care about the execution result, including errors

Reviewed By: lblasa

Differential Revision: D47398015

fbshipit-source-id: ef185575f6e91d69356ab88c7f3d213033759da8
  • Loading branch information
aigoncharov authored and facebook-github-bot committed Jul 13, 2023
1 parent f59a2e5 commit ca009d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions desktop/flipper-frontend-core/src/AbstractClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ export default abstract class AbstractClient extends EventEmitter {
// diff the background plugin list, disconnect old, connect new ones
oldBackgroundPlugins.forEach((plugin) => {
if (!this.backgroundPlugins.has(plugin)) {
if (plugin === 'Msys') {
console.log('AbstyractClient.refreshPlugins -> deinit Msys');
}
this.deinitPlugin(plugin);
}
});
Expand Down
4 changes: 3 additions & 1 deletion desktop/flipper-ui-core/src/dispatcher/flipperServer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ export async function handleClientConnected(
query,
{
send(data: any) {
server.exec('client-request', id, data);
server.exec('client-request', id, data).catch((e) => {
console.warn(e);
});
},
async sendExpectResponse(data: any) {
return await server.exec('client-request-response', id, data);
Expand Down
4 changes: 0 additions & 4 deletions desktop/flipper-ui-core/src/dispatcher/pluginManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,6 @@ function stopPlugin(
!defaultEnabledBackgroundPlugins.includes(pluginId)) &&
client?.isBackgroundPlugin(pluginId)
) {
// Debugging T141716711
if (pluginId === 'Msys') {
console.log('pluginManager.stopPlugin -> deinit Msys');
}
client.deinitPlugin(pluginId);
}
// stop sandy plugins
Expand Down

0 comments on commit ca009d1

Please sign in to comment.