Leaving Africa , Sailing to Las Palmas : Engine Failure AGAIN

We left Agadir after a week and thought we had solved the engine issue, but about an hour outside of Agadir we tried the engine and it didn't start again. We knew that this was a problem that occured only when the engine was hot, so we sailed to Las Palmas and only started the engine once we were an hour from the marina and didn't stop it until we were safely in the doc. It only took 3 days to sail from Morocco to Las Palmas. We mostly had following seas and uneventful passage.