Skip to content

Commit 2c2cf29

Browse files
committed
use detach to avoid reffing
1 parent d8f2ce4 commit 2c2cf29

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

script/proto/proto.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ function m.listen(mode, socketPort)
241241
rfd:connect('127.0.0.1', socketPort)
242242
local wfd1, wfd2 = socket.pair()
243243
m.fd = wfd1
244-
m.fdRefs = { rfd, wfd1, wfd2 }
245244
pub.task('loadProtoBySocket', {
246-
wfd = wfd2:handle(),
247-
rfd = rfd:handle(),
245+
wfd = wfd2:detach(),
246+
rfd = rfd:detach(),
248247
})
249248
end
250249
end

0 commit comments

Comments
 (0)