diff 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
line wrap: on
line diff
--- a/net/server_event.lua	Tue May 26 15:36:36 2026 +0100
+++ b/net/server_event.lua	Tue May 26 16:01:28 2026 +0100
@@ -946,7 +946,7 @@
 				self.wantwrite = base:addevent(fd, EV_WRITE, function ()
 					onwriteable(self);
 				end);
-			elseif not r and self.wantread then
+			elseif not w and self.wantwrite then
 				self.wantwrite:close();
 				self.wantwrite = nil;
 			end