aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-25 18:08:59 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-25 18:08:59 +0000
commite224080a1416a55366b82243eb1fa92052f096fc (patch)
tree694651bed0dd85190842359c60cb71eb006723ef /net
parent2113d0d2552f174a2f86789323ac0c10d3d1e210 (diff)
parent52d66e52676c48d453fa286be2c5587dce80afb4 (diff)
downloadprosody-e224080a1416a55366b82243eb1fa92052f096fc.tar.gz
prosody-e224080a1416a55366b82243eb1fa92052f096fc.zip
Merge with 0.7
Diffstat (limited to 'net')
-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