add 'discardAll' parameter to socket:close(...)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user