Skip to content

Commit

Permalink
Re-enabled the closures here
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Jan 14, 2024
1 parent e5a763b commit 604c927
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions forwarder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ func (v *Views) run(config Config, interrupt chan os.Signal) {
}(c)
go func() {
pinging.Store(false)
//defer close(done)
//defer func() {
// if r := recover(); r != nil {
// close(errorChannel)
// }
//}()
defer close(done)
defer func() {
if r := recover(); r != nil {
close(errorChannel)
}
}()
response := specialTransporter.InitiationTransporter{
Server: server.Forwarder,
Version: Version,
Expand Down

0 comments on commit 604c927

Please sign in to comment.