File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ module Controller = struct
259
259
let open Header in
260
260
match evt with
261
261
| `Message (c_id , (hdr , bytes )) ->
262
+ Handler. activity t c_id;
262
263
begin if hdr.Header. type_code = type_code_echo_request then
263
264
(* Echo requests get a reply *)
264
265
let hdr = { hdr with type_code = type_code_echo_reply } in
@@ -271,11 +272,10 @@ module Controller = struct
271
272
* the controller.
272
273
* *)
273
274
>> | (function _ -> [] )
274
- else if hdr.Header. type_code = type_code_echo_reply then begin
275
- (* Echo replies get eaten, after recording activity. *)
276
- Handler. activity t c_id;
275
+ else if hdr.Header. type_code = type_code_echo_reply then
276
+ (* Echo replies get eaten. The activity has been recorded above. *)
277
277
return []
278
- end else
278
+ else
279
279
(* All other messages get forwarded *)
280
280
return [evt]
281
281
end
You can’t perform that action at this time.
0 commit comments