Bug 1497749: Get hello message from channel ID when pipe handle passed. r=jld

This commit is contained in:
Bob Owen 2018-12-18 14:26:26 +00:00
Родитель 4d0c09ec59
Коммит 3018ba4863
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -73,6 +73,11 @@ Channel::ChannelImpl::ChannelImpl(const std::wstring& channel_id,
Init(mode, listener);
if (mode == MODE_SERVER) {
// We don't need the pipe name because we've been passed a handle, but we do
// need to get the shared secret from the channel_id.
PipeName(channel_id, &shared_secret_);
waiting_for_shared_secret_ = !!shared_secret_;
// Use the existing handle that was dup'd to us
pipe_ = server_pipe;
EnqueueHelloMessage();