mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-07 07:50:26 +00:00
Added checkDelay
to disknet
table
This commit is contained in:
parent
f7c4ad81a8
commit
b52041d20f
@ -4,8 +4,8 @@ local tArg = {...}
|
||||
|
||||
disknet.mainPath = "disk/DISKNET" -- path of shared file
|
||||
local limitChannelsToModem = false -- if true, can only use number channels from 1 to 65535
|
||||
local checkDelay = 0.2 -- amount of time (seconds) between checking the file -- if 0, checks super fast so don't do that
|
||||
local maximumBufferSize = 64 -- largest amount of messages per channel buffered
|
||||
disknet.checkDelay = 0.2 -- amount of time (seconds) between checking the file -- if 0, checks super fast so don't do that
|
||||
|
||||
local isUsingTweaked = false
|
||||
if _HOST then
|
||||
@ -281,8 +281,8 @@ disknet.receive = function(channel, senderFilter)
|
||||
if output then
|
||||
break
|
||||
else
|
||||
if checkDelay > 0 then
|
||||
sleep(checkDelay)
|
||||
if disknet.checkDelay > 0 then
|
||||
sleep(disknet.checkDelay)
|
||||
else
|
||||
os.queueEvent("")
|
||||
os.pullEvent("")
|
||||
|
Loading…
Reference in New Issue
Block a user