diff --git a/CHANGES b/CHANGES index d85734302..7536739cb 100644 --- a/CHANGES +++ b/CHANGES @@ -39,6 +39,7 @@ Other fixes: - Qt: Fix initializing update revision info - Qt: Redo stable branch detection heuristic (fixes mgba.io/i/2679) - Res: Fix species name location in Ruby/Sapphire revs 1/2 (fixes mgba.io/i/2685) + - Scripting: Fix receiving packets for client sockets - VFS: Fix minizip write returning 0 on success instead of size Misc: - macOS: Add category to plist (closes mgba.io/i/2691) diff --git a/src/script/engines/lua.c b/src/script/engines/lua.c index bcd9e230d..98ac95d3f 100644 --- a/src/script/engines/lua.c +++ b/src/script/engines/lua.c @@ -131,7 +131,7 @@ static const char* _socketLuaSource = " end,\n" " connect = function(self, address, port)\n" " local status = self._s:connect(address, port)\n" - " return socket._wrap(status)\n" + " return self:_hook(status)\n" " end,\n" " listen = function(self, backlog)\n" " local status = self._s:listen(backlog or 1)\n"