Software /
code /
prosody
Comparison
net/server.lua @ 1863:51b1612325e6
net.server: Fix missing concatenation operator in error message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 02 Oct 2009 21:20:53 +0100 |
parent | 1804:f0f5ff6f82d6 |
child | 1865:388b125b784a |
child | 1952:4a15b176fca8 |
comparison
equal
deleted
inserted
replaced
1860:5ef1eea887ca | 1863:51b1612325e6 |
---|---|
718 end | 718 end |
719 | 719 |
720 removeserver = function( port ) | 720 removeserver = function( port ) |
721 local handler = _server[ port ] | 721 local handler = _server[ port ] |
722 if not handler then | 722 if not handler then |
723 return nil, "no server found on port '" .. tostring( port ) "'" | 723 return nil, "no server found on port '" .. tostring( port ) .. "'" |
724 end | 724 end |
725 handler.close( ) | 725 handler.close( ) |
726 _server[ port ] = nil | 726 _server[ port ] = nil |
727 return true | 727 return true |
728 end | 728 end |