summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorMihai Parparita <mihai@tailscale.com>2022-07-27 15:11:17 -0700
committerMihai Parparita <mihai.parparita@gmail.com>2022-07-27 15:42:58 -0700
commita3d74c4548b24a24402282af6c4bd9af8257e89c (patch)
tree66bf5e20c09361fad506a1b64c95d7adb3177204 /control/controlknobs/controlknobs.go
parent4dbdb19c2658e458325e30afec0e80b818b13b22 (diff)
downloadtailscale-a3d74c4548b24a24402282af6c4bd9af8257e89c.tar.xz
tailscale-a3d74c4548b24a24402282af6c4bd9af8257e89c.zip
cmd/tsconnect: add basic panic handling
The go wasm process exiting is a sign of an unhandled panic. Also add a explicit recover() call in the notify callback, that's where most logic bugs are likely to happen (and they may not be fatal). Also fixes the one panic that was encountered (nill pointer dereference when generating the JS view of the netmap). Fixes #5132 Signed-off-by: Mihai Parparita <mihai@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions