X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=frontend%2Floop.go;h=f7441c31421ee78b02d339abb94ad013a5fa17af;hb=791f34212ebd19a9c79c9bd1157f590f4b24f5c2;hp=5e232a3aaad6165d4d7305fb1b116056abca5ef9;hpb=c899e17495d4eb932e0b4f428ec91882d845f1bc;p=safcm%2Fsafcm.git diff --git a/frontend/loop.go b/frontend/loop.go index 5e232a3..f7441c3 100644 --- a/frontend/loop.go +++ b/frontend/loop.go @@ -1,7 +1,7 @@ // Frontend: Host synchronization and logging event loop for programs using // the safcm library -// Copyright (C) 2021 Simon Ruderich +// Copyright (C) 2021-2022 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -144,10 +144,10 @@ func (l *Loop) syncHost(wg *sync.WaitGroup, host Host) error { err := host.Dial(conn) if err != nil { - conn.Kill() + conn.Kill() //nolint:errcheck return err } - defer conn.Kill() + defer conn.Kill() //nolint:errcheck err = l.SyncHostFunc(conn, host) if err != nil {