Run the socket handler in goroutine.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-09-25 18:26:18 +02:00
parent 5e081fa5dd
commit 4ed99e4822

View File

@@ -73,9 +73,7 @@ func listenForMounts() {
h := volume.NewHandler(d)
u, _ := user.Lookup("root")
gid, _ := strconv.Atoi(u.Gid)
if err := h.ServeUnix("/run/docker/plugins/dvd.sock", gid); err != nil {
log.Fatal(err)
}
go h.ServeUnix("/run/docker/plugins/dvd.sock", gid)
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())