diff options
Diffstat (limited to 'device/device.go')
-rw-r--r-- | device/device.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/device.go b/device/device.go index 5f128fc..3172224 100644 --- a/device/device.go +++ b/device/device.go @@ -323,7 +323,7 @@ func NewDevice(tunDevice tun.Device, logger *Logger) *Device { cpus := runtime.NumCPU() device.state.stopping.Wait() - for i := 0; i < cpus; i += 1 { + for i := 0; i < cpus; i++ { device.state.stopping.Add(2) // decryption and handshake go device.RoutineEncryption() go device.RoutineDecryption() |