Skip to content

Commit 4f6946b

Browse files
WuPengheWuPenghe
authored andcommitted
fix minor bug when resource.args is null
1 parent f249851 commit 4f6946b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

asyncMonitor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ function asyncMonitor(portNumber) {
8181
return;
8282
}
8383

84-
if(resource.args && resource.args[0].url){
84+
if(resource.args && resource.args[0] && resource.args[0].url) {
85+
process._rawDebug(asyncId, type, triggerAsyncId, resource);
8586
if(resource.args[0].url.includes('socket.io') && resource.args[0].socket.server._connectionKey === `6::::${portNumber}`) {
8687
deleteEntireBranch(triggerAsyncId);
8788
return;

client/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const socket = io.connect('http://localhost:3000');
1+
const socket = io.connect('http://localhost:8100');

0 commit comments

Comments
 (0)