Ответ:

When my father came home, I was having dinner.