Software /
code /
prosody
Comparison
net/server_event.lua @ 9575:1fb3e7c550bf
net.server_event: Deprecate :lock_read here too
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Oct 2018 16:51:58 +0100 |
parent | 9499:36e379f058c8 |
child | 9581:1be99aedb0b3 |
comparison
equal
deleted
inserted
replaced
9574:03214e6e3272 | 9575:1fb3e7c550bf |
---|---|
251 return nointerface, noreading, nowriting | 251 return nointerface, noreading, nowriting |
252 end | 252 end |
253 | 253 |
254 --TODO: Deprecate | 254 --TODO: Deprecate |
255 function interface_mt:lock_read(switch) | 255 function interface_mt:lock_read(switch) |
256 log("warn", ":lock_read is deprecated, use :pasue() and :resume()"); | |
256 if switch then | 257 if switch then |
257 return self:pause(); | 258 return self:pause(); |
258 else | 259 else |
259 return self:resume(); | 260 return self:resume(); |
260 end | 261 end |