summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remoting/host/curtain_mode_mac.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/remoting/host/curtain_mode_mac.cc b/remoting/host/curtain_mode_mac.cc
index b80c3db..f6477e7 100644
--- a/remoting/host/curtain_mode_mac.cc
+++ b/remoting/host/curtain_mode_mac.cc
@@ -134,6 +134,7 @@ bool CurtainModeMac::RemoveEventHandler() {
OSStatus result = noErr;
if (event_handler_) {
result = ::RemoveEventHandler(event_handler_);
+ event_handler_ = NULL;
}
return result == noErr;
}