X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=frontend%2Floop.go;h=0da06653bd2328dc196415d2416aa2ae856dfb56;hb=431db66aae07cf3d1d35ea87c087124335d3d395;hp=5e232a3aaad6165d4d7305fb1b116056abca5ef9;hpb=c899e17495d4eb932e0b4f428ec91882d845f1bc;p=safcm%2Fsafcm.git diff --git a/frontend/loop.go b/frontend/loop.go index 5e232a3..0da0665 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-2023 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 {