| Index: remoting/host/desktop_session_win.cc
|
| diff --git a/remoting/host/desktop_session_win.cc b/remoting/host/desktop_session_win.cc
|
| index 805f6c20ed31c88a2279254d75f974c85db33da7..eed188826c0145383300957dcbe5510c808f44b0 100644
|
| --- a/remoting/host/desktop_session_win.cc
|
| +++ b/remoting/host/desktop_session_win.cc
|
| @@ -658,12 +658,14 @@ void DesktopSessionWin::OnSessionAttached(uint32_t session_id) {
|
|
|
| // Create a launcher for the desktop process, using the per-session delegate.
|
| launcher_.reset(new WorkerProcessLauncher(std::move(delegate), this));
|
| + session_id_ = session_id;
|
| }
|
|
|
| void DesktopSessionWin::OnSessionDetached() {
|
| DCHECK(caller_task_runner_->BelongsToCurrentThread());
|
|
|
| launcher_.reset();
|
| + session_id_ = UINT32_MAX;
|
|
|
| if (monitoring_notifications_) {
|
| ReportElapsedTime("detached");
|
| @@ -676,7 +678,8 @@ void DesktopSessionWin::OnSessionDetached() {
|
|
|
| void DesktopSessionWin::OnDesktopSessionAgentAttached(
|
| const IPC::ChannelHandle& desktop_pipe) {
|
| - if (!daemon_process()->OnDesktopSessionAgentAttached(id(), desktop_pipe)) {
|
| + if (!daemon_process()->OnDesktopSessionAgentAttached(id(), session_id_,
|
| + desktop_pipe)) {
|
| CrashDesktopProcess(FROM_HERE);
|
| }
|
| }
|
|
|