diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-25 02:01:00 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-25 02:01:00 +0000 |
commit | 43052f325355c2c5b03540119f08c38022e0a452 (patch) | |
tree | 1e91476aada938cbd20647531b53af6172a417d7 /net/server_event.lua | |
parent | b9fac6ba28a3f09ebd0f7c0205fe942d468b76a9 (diff) | |
download | prosody-43052f325355c2c5b03540119f08c38022e0a452.tar.gz prosody-43052f325355c2c5b03540119f08c38022e0a452.zip |
net.server_event: Add lock_read() method to connections
Diffstat (limited to 'net/server_event.lua')
-rw-r--r-- | net/server_event.lua | 4 |
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 |