How do I stop Avast from rebooting automatically?

Avast has rebooted twice in the last 24 hours when I’m away from my computer – with resulting loss of data. How do I prevent this from happeding, i.e., select when Avast reboots after an update?