Home GnuPG
Diffusion GpgOL b18f00540c1a

Ignore reads when shutdown was triggered

Description

Ignore reads when shutdown was triggered

* src/gpgoladdin.cpp (GpgolAddin::shutdown): Set state
variable at begin of shutdown.
* src/mailitem-events.cpp (BeforeRead): Ignore when
shutting down.

This happened when we are closing and closing all mails
but there are multiple inspectors around e.g. if the mail
is open in Outlook Spy. In that case Outlook tries to read
it again immediately after close.

Details

Provenance
aheineckeAuthored on Sep 28 2018, 1:33 PM
Parents
rO13e84a8f612a: Fix potential crash in revert
Branches
Unknown
Tags
Unknown