Skip to content

Commit

Permalink
Merge pull request #875 from jamesgol/fix-wg-beacon-win
Browse files Browse the repository at this point in the history
Sleep before shutting down beacon instead of after
  • Loading branch information
moloch-- authored Sep 15, 2022
2 parents 70b0667 + 18f8a8c commit c1ac4dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion implant/sliver/sliver.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ func beaconMainLoop(beacon *transports.Beacon) error {
Register: register,
NextCheckin: int64(beacon.Duration().Seconds()),
}))
beacon.Close()
time.Sleep(time.Second)
beacon.Close()

// BeaconMain - Is executed in it's own goroutine as the function will block
// until all tasks complete (in success or failure), if a task handler blocks
Expand Down Expand Up @@ -353,6 +353,7 @@ func beaconMain(beacon *transports.Beacon, nextCheckin time.Time) error {
// {{if .Config.Debug}}
log.Printf("[beacon] closing ...")
// {{end}}
time.Sleep(time.Second)
beacon.Close()
}()
// {{if .Config.Debug}}
Expand Down

0 comments on commit c1ac4dd

Please sign in to comment.