Commit ce5b7b96 authored by mercury233's avatar mercury233

update socket connections

parent ab79baf5
This diff is collapsed.
This diff is collapsed.
...@@ -158,5 +158,5 @@ for name, declaration of structs_declaration ...@@ -158,5 +158,5 @@ for name, declaration of structs_declaration
msg: 1 msg: 1
code: 2 code: 2
} if client } if client
client.end() if client client.destroy() if client
return return
\ No newline at end of file
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
}); });
} }
if (client) { if (client) {
client.end(); client.destroy();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment