comparison net/server_event.lua @ 14200:91afc1f07337

Merge 13.0->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 May 2026 16:01:28 +0100
parents d649d011df45 8eac8de97bca
children
comparison
equal deleted inserted replaced
14198:73903352de86 14200:91afc1f07337
944 if w ~= nil then 944 if w ~= nil then
945 if w and not self.wantwrite then 945 if w and not self.wantwrite then
946 self.wantwrite = base:addevent(fd, EV_WRITE, function () 946 self.wantwrite = base:addevent(fd, EV_WRITE, function ()
947 onwriteable(self); 947 onwriteable(self);
948 end); 948 end);
949 elseif not r and self.wantread then 949 elseif not w and self.wantwrite then
950 self.wantwrite:close(); 950 self.wantwrite:close();
951 self.wantwrite = nil; 951 self.wantwrite = nil;
952 end 952 end
953 end 953 end
954 end 954 end