Software /
code /
prosody
Comparison
net/server.lua @ 2645:625d02b2a1a0
net.server: Remove redundant commented code and some trailing whitespace
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 15 Feb 2010 22:53:32 +0000 |
parent | 2435:1ab73691b58e |
child | 2925:692b3c6c5bd2 |
comparison
equal
deleted
inserted
replaced
2644:c75c22c316d6 | 2645:625d02b2a1a0 |
---|---|
34 signal_id = signal[signal_id:upper()]; | 34 signal_id = signal[signal_id:upper()]; |
35 end | 35 end |
36 if type(signal_id) ~= "number" then | 36 if type(signal_id) ~= "number" then |
37 return false, "invalid-signal"; | 37 return false, "invalid-signal"; |
38 end | 38 end |
39 --_signal_signal(signal_id, handler); | |
40 return server.hook_signal(signal_id, handler); | 39 return server.hook_signal(signal_id, handler); |
41 end | 40 end |
42 end | 41 end |
43 else | 42 else |
44 server = require "net.server_select"; | 43 server = require "net.server_select"; |
45 package.loaded["net.server"] = server; | 44 package.loaded["net.server"] = server; |
46 end | 45 end |
47 | 46 |
48 -- require "net.server" shall now forever return this, | 47 -- require "net.server" shall now forever return this, |
49 -- ie. server_select or server_event as chosen above. | 48 -- ie. server_select or server_event as chosen above. |
50 return server; | 49 return server; |