add 'discardAll' parameter to socket:close(...)

This commit is contained in:
MihailRis
2025-01-17 23:43:44 +03:00
parent 20bd7666cd
commit d2bbd82dbe
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -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;
}