# HG changeset patch # User Kim Alvefur # Date 1540742930 -3600 # Node ID 185eed6cbab0d2a14b1b3d4234ad5d44f6c9f4b7 # Parent 1ef33635f3f059cde0187efe6612f8ee0e06209d net.server_select: Replace use of deprecated :lock_read in server.link diff -r 1ef33635f3f0 -r 185eed6cbab0 net/server_select.lua --- a/net/server_select.lua Sun Oct 28 16:55:21 2018 +0100 +++ b/net/server_select.lua Sun Oct 28 17:08:50 2018 +0100 @@ -719,7 +719,7 @@ 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 @@ _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");