mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add 'discardAll' parameter to socket:close(...)
This commit is contained in:
parent
20bd7666cd
commit
d2bbd82dbe
3 changed files with 11 additions and 6 deletions
|
|
@ -73,7 +73,7 @@ static int l_connect(lua::State* L) {
|
|||
static int l_close(lua::State* L) {
|
||||
u64id_t id = lua::tointeger(L, 1);
|
||||
if (auto connection = engine->getNetwork().getConnection(id)) {
|
||||
connection->close();
|
||||
connection->close(true);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue