Fix regression introduced by commit a015c6905edaa0508c06588e56923a21ade58abd
Also notify heartbeat when polling transport is used.