Oh yea actually remove the thing
This commit is contained in:
parent
f978a9c52c
commit
5939636182
|
@ -106,14 +106,17 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation
|
|||
{
|
||||
auto peasantSearch = _peasants.find(peasantID);
|
||||
auto maybeThePeasant = peasantSearch == _peasants.end() ? nullptr : peasantSearch->second;
|
||||
maybeThePeasant.GetPID();
|
||||
if (maybeThePeasant)
|
||||
{
|
||||
maybeThePeasant.GetPID();
|
||||
}
|
||||
return maybeThePeasant;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
LOG_CAUGHT_EXCEPTION();
|
||||
// TODO: Remove the peasant from the list of peasants
|
||||
|
||||
_peasants.erase(peasantID);
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue