summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/util-soc-imp-socket.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-03-23 23:12:42 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-03-23 23:12:42 +0100
commit15c9a0a54f08ffc9fb72d6d878db4602ac6e1ca2 (patch)
tree19f4f5a061de3fe14f8e990437c69f740026e9a1 /tex/context/base/mkiv/util-soc-imp-socket.lua
parentb958bba841f9907582f3c5fa4b6162353636fc8f (diff)
downloadcontext-15c9a0a54f08ffc9fb72d6d878db4602ac6e1ca2.tar.gz
2019-03-21 21:47:00current
Diffstat (limited to 'tex/context/base/mkiv/util-soc-imp-socket.lua')
-rw-r--r--tex/context/base/mkiv/util-soc-imp-socket.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/util-soc-imp-socket.lua b/tex/context/base/mkiv/util-soc-imp-socket.lua
index 3da155749..d1486f8f8 100644
--- a/tex/context/base/mkiv/util-soc-imp-socket.lua
+++ b/tex/context/base/mkiv/util-soc-imp-socket.lua
@@ -5,7 +5,7 @@ local type, tostring, setmetatable = type, tostring, setmetatable
local min = math.min
local format = string.format
-local socket = require("socket.core")
+local socket = socket or package.loaded.socket or require("socket.core")
local connect = socket.connect
local tcp4 = socket.tcp4