We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11c6521 commit 52be374Copy full SHA for 52be374
1 file changed
index.js
@@ -128,13 +128,11 @@ class NUClearNet extends EventEmitter {
128
if (this._active) {
129
try {
130
this._net.process();
131
- } catch (err) {
132
- if (err instanceof Error) {
133
- // An error occurred during processing, disconnect.
134
- // Check if active again, since process happens asynchronously.
135
- if (this._active) {
136
- this.disconnect();
137
- }
+ } catch {
+ // An error occurred during processing, disconnect.
+ // Check if active again, since process happens asynchronously.
+ if (this._active) {
+ this.disconnect();
138
}
139
140
0 commit comments