# HG changeset patch # User Matthew Wild # Date 1263838803 0 # Node ID 2d81cc25b5a646c88fa7081f2751deb81e0f1e0a # Parent a6a50cf0e44416c244259ed9f0e211c2ad38fc48 net.server_event: Remove access to starttls method when starttls is negotiated - fixes offering starttls to client who are already using it (thanks darkrain and Adium) diff -r a6a50cf0e444 -r 2d81cc25b5a6 net/server_event.lua --- a/net/server_event.lua Mon Jan 18 17:14:41 2010 +0000 +++ b/net/server_event.lua Mon Jan 18 18:20:03 2010 +0000 @@ -415,6 +415,7 @@ self:_lock( true, true, false ) debug "ssl session delayed until writebuffer is empty..." end + self.starttls = false; return true end