diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-28 17:08:50 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-28 17:08:50 +0100 |
commit | 556eddb7913324503e77bfdce49b8edb55cbc59f (patch) | |
tree | ab5e176bb477c4fda4683bf3f47988c36fc09c0f | |
parent | 55e3a7a8aacae7cc401753da0f32947b0eab5d16 (diff) | |
download | prosody-556eddb7913324503e77bfdce49b8edb55cbc59f.tar.gz prosody-556eddb7913324503e77bfdce49b8edb55cbc59f.zip |
net.server_select: Replace use of deprecated :lock_read in server.link
-rw-r--r-- | net/server_select.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index e30ac8fe..475f05b8 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -719,7 +719,7 @@ local function link(sender, receiver, buffersize) function receiver.sendbuffer() _sendbuffer(); if sender_locked and receiver.bufferlen() < buffersize then - sender:lock_read(false); -- Unlock now + sender:resume(); -- Unlock now sender_locked = nil; end end @@ -729,7 +729,7 @@ local function link(sender, receiver, buffersize) _readbuffer(); if not sender_locked and receiver.bufferlen() >= buffersize then sender_locked = true; - sender:lock_read(true); + sender:pause(); end end sender:set_mode("*a"); |