In Canada it is legal to hot refuel, if it is approved in your OPS manual, of course you need all the grounding cable in place before getting the fuel AND a pilot should be at the controls while getting it AND no passengers on board during the refueling.
But it will happen occasionally (maybe a little bit more than occasionally) where the pilot will hot fuel his own aircraft but not legal at least not in Canada.
JD