diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-02-09 13:41:05 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-02-09 13:41:05 +0000 |
commit | af27b13805d574106b81330890f81d94695e5edc (patch) | |
tree | d09bb66373f1d01bd1dca886877f8133d6a95902 /net | |
parent | 3fc972b6c2bd4545cdcc1856b28a67bb7fdcfd1a (diff) | |
download | prosody-af27b13805d574106b81330890f81d94695e5edc.tar.gz prosody-af27b13805d574106b81330890f81d94695e5edc.zip |
net.server: Fix potential fatal error in server.lua
Diffstat (limited to 'net')
-rw-r--r-- | net/server.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua index 0a0f8492..773a4232 100644 --- a/net/server.lua +++ b/net/server.lua @@ -439,7 +439,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport out_put( "server.lua: client ", ip, ":", clientport, " error: ", err )
fatalerror = true
disconnect( handler, err )
- handler.close( )
+ _ = handler and handler.close( )
return false
end
end
|