tremplin: Fix a possible crash during shutdown

If we shut down before LXD starts then server.lxd is nil and we crash.
Add a check for that case.

BUG=None
TEST=CQ

Change-Id: I51cbf15a037df651b0ed938d83d6a53067f13edd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tremplin/+/2588970
Tested-by: David Munro <davidmunro@google.com>
Auto-Submit: David Munro <davidmunro@google.com>
Commit-Queue: Fergus Dall <sidereal@google.com>
Reviewed-by: Fergus Dall <sidereal@google.com>
1 file changed
tree: 921bd29187ad180593d977d34239c8cf6a39ce2c
  1. src/
  2. .gitignore
  3. OWNERS
  4. README.md
README.md

Tremplin

Tremplin is the “springboard” daemon that runs in the Termina VM and exposes a gRPC interface for managing LXD containers.