add isClosed to socket

This commit is contained in:
2023-06-22 11:32:33 +01:00
parent 1a2ad64ea4
commit 1d3eaf9990
3 changed files with 12 additions and 10 deletions

View File

@@ -73,18 +73,17 @@ func importMod(realpath string, origin string, main bool, global ArObject) (ArOb
}
} else {
pathsToTest = []string{
filepath.Join(origin, realpath, "init.ar"),
filepath.Join(origin, path),
filepath.Join(origin, realpath, "init.ar"),
filepath.Join(origin, modules_folder, path),
filepath.Join(origin, modules_folder, realpath, "init.ar"),
filepath.Join(ex, path),
filepath.Join(ex, modules_folder, realpath, "init.ar"),
filepath.Join(ex, modules_folder, path),
filepath.Join(executable, modules_folder, realpath, "init.ar"),
filepath.Join(ex, modules_folder, realpath, "init.ar"),
filepath.Join(executable, modules_folder, path),
filepath.Join(executable, modules_folder, realpath, "init.ar"),
}
}
var p string
var found bool
for _, p = range pathsToTest {