Index: remoting/host/desktop_session_win.cc |
diff --git a/remoting/host/desktop_session_win.cc b/remoting/host/desktop_session_win.cc |
index 453de2b9390ad8c7084659e57feca8b9bc79ba7d..50d41c87c2952a07784e371c75ca5ba71849054b 100644 |
--- a/remoting/host/desktop_session_win.cc |
+++ b/remoting/host/desktop_session_win.cc |
@@ -82,6 +82,12 @@ bool DesktopSessionWin::OnMessageReceived(const IPC::Message& message) { |
OnInjectSas) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
+ |
+ if (!handled) { |
+ LOG(ERROR) << "Received unexpected IPC type: " << message.type(); |
+ RestartDesktopProcess(FROM_HERE); |
+ } |
+ |
return handled; |
} |