In the event that a fuel leak is confirmed on the 777 - the suspected engine is shut down immediately to avoid an engine fire. Once the engine is shut down, then more fault finding is conducted to identify whether the leak is from the engine or wing.
If the leak is confirmed as from the wing, the engine may be restarted...