diff options
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/matterbridge.go b/matterbridge.go index de63c905..e713fb0b 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -28,8 +28,11 @@ func main() { flagGops := flag.Bool("gops", false, "enable gops agent") flag.Parse() if *flagGops { - agent.Listen(agent.Options{}) - defer agent.Close() + if err := agent.Listen(agent.Options{}); err != nil { + flog.Errorf("failed to start gops agent: %#v", err) + } else { + defer agent.Close() + } } if *flagVersion { fmt.Printf("version: %s %s\n", version, githash) |