# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1687592903 -7200
# Node ID 289c866d7fb0799f95be4df8f74ed8bb86e97bb8
# Parent  8ed3c95bf8805796944a7de00f4361f83c582347
verse: Fix to work with server_epoll

diff -r 8ed3c95bf880 -r 289c866d7fb0 init.lua
--- a/init.lua	Fri Jun 23 22:21:05 2023 +0200
+++ b/init.lua	Sat Jun 24 09:48:23 2023 +0200
@@ -152,10 +152,8 @@
 		verse.log("error", "Attempt to close disconnected connection - possibly a bug");
 		return;
 	end
-	local on_disconnect = self.conn.disconnect();
 	self:event("shutdown");
 	self.conn:close();
-	on_disconnect(self.conn, reason);
 end
 
 -- Logging functions