X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=frontend%2Floop.go;h=bc8aea2028568915776a2e6cd953f5ccb8504f0a;hb=HEAD;hp=5e232a3aaad6165d4d7305fb1b116056abca5ef9;hpb=c899e17495d4eb932e0b4f428ec91882d845f1bc;p=safcm%2Fsafcm.git diff --git a/frontend/loop.go b/frontend/loop.go index 5e232a3..bc8aea2 100644 --- a/frontend/loop.go +++ b/frontend/loop.go @@ -1,20 +1,8 @@ // Frontend: Host synchronization and logging event loop for programs using // the safcm library -// Copyright (C) 2021 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 -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2021-2024 Simon Ruderich package frontend @@ -144,10 +132,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 {