Browse Source

fixing nil pointer in external service

sni-wip
forest 8 months ago
parent
commit
0dc9f135a8
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      external-service/build-docker.sh
  2. +3
    -1
      external-service/main.go

+ 1
- 1
external-service/build-docker.sh View File

@ -1,6 +1,6 @@
#!/bin/bash -e
VERSION="0.0.12"
VERSION="0.0.14"
rm -rf dockerbuild || true
mkdir dockerbuild


+ 3
- 1
external-service/main.go View File

@ -75,7 +75,9 @@ func main() {
if err != nil {
log.Printf("WARNING: SERVICE_%d_DIAL: can't connect to '%s' right now", i, dial)
}
defer testConnection.Close()
if testConnection != nil {
defer testConnection.Close()
}
services = append(services, Service{
Listen: listenAddr,


Loading…
Cancel
Save