Skip to content

Commit 974811d

Browse files
committed
Merge branch 'development'
2 parents 3f37023 + ed2cca2 commit 974811d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Scripts/net/DCSServerBot/DCSServerBot.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if dcsbot.UDPSendSocket == nil then
2525
package.cpath = package.cpath..";.\\LuaSocket\\?.dll;"
2626
local socket = require("socket")
2727
dcsbot.UDPSendSocket = socket.udp()
28+
dcsbot.UDPSendSocket:settimeout(0)
2829
dcsbot.UDPSendSocket:setsockname("*", 0)
2930
end
3031

Scripts/net/DCSServerBot/DCSServerBotUtils.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ local config = require('DCSServerBotConfig')
2424
package.path = package.path..";.\\LuaSocket\\?.lua;"
2525
package.cpath = package.cpath..";.\\LuaSocket\\?.dll;"
2626
local socket = require("socket")
27-
UDPSendSocket = socket.udp()
27+
28+
if UDPSendSocket == nil then
29+
UDPSendSocket = socket.udp()
30+
UDPSendSocket:settimeout(0)
31+
UDPSendSocket:setsockname("*", 0)
32+
end
2833

2934
-- this is the DCS server name
3035
server_name = nil

0 commit comments

Comments
 (0)