aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-28 16:51:58 +0100
committerKim Alvefur <zash@zash.se>2018-10-28 16:51:58 +0100
commiteff5acbce1361ea628ac44fe8cb980ed876c6661 (patch)
treef6dc5c9086da02cce142f3efdadd619488194ae0
parent7abfe39cc3a0949c8bde868dd3811bf33149897d (diff)
downloadprosody-eff5acbce1361ea628ac44fe8cb980ed876c6661.tar.gz
prosody-eff5acbce1361ea628ac44fe8cb980ed876c6661.zip
net.server_event: Deprecate :lock_read here too
-rw-r--r--net/server_event.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 11bd6a29..ca80c3f2 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -253,6 +253,7 @@ end
--TODO: Deprecate
function interface_mt:lock_read(switch)
+ log("warn", ":lock_read is deprecated, use :pasue() and :resume()");
if switch then
return self:pause();
else