state.Ctx.LogE("sp-process", sds, err, "")
return nil, err
}
+ if head.Type != SPTypePing {
+ state.RxLastNonPing = state.RxLastSeen
+ }
switch head.Type {
case SPTypeHalt:
state.Ctx.LogD("sp-process", SdsAdd(sds, SDS{"type": "halt"}), "")
)
return nil, BadPktType
}
- if head.Type != SPTypePing {
- state.RxLastNonPing = state.RxLastSeen
- }
}
if infosGot {
var pkts int