aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-25 02:01:00 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-25 02:01:00 +0000
commit43052f325355c2c5b03540119f08c38022e0a452 (patch)
tree1e91476aada938cbd20647531b53af6172a417d7
parentb9fac6ba28a3f09ebd0f7c0205fe942d468b76a9 (diff)
downloadprosody-43052f325355c2c5b03540119f08c38022e0a452.tar.gz
prosody-43052f325355c2c5b03540119f08c38022e0a452.zip
net.server_event: Add lock_read() method to connections
-rw-r--r--net/server_event.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 3456fb9e..d041ae43 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -281,6 +281,10 @@ do
self.nointerface, self.noreading, self.nowriting = nointerface, noreading, nowriting
return nointerface, noreading, nowriting
end
+
+ function interface_mt:lock_read(switch)
+ return self:_lock(self.nointerface, switch, self.nowriting);
+ end
function interface_mt:counter(c)
if c then