mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 17:47:59 -06:00
Update src/windows/common/VirtioNetworking.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b560784bb0
commit
0f63354384
@ -24,6 +24,8 @@ VirtioNetworking::VirtioNetworking(
|
|||||||
|
|
||||||
VirtioNetworking::~VirtioNetworking()
|
VirtioNetworking::~VirtioNetworking()
|
||||||
{
|
{
|
||||||
|
// Unregister the network notification callback to prevent it from using the GNS channel.
|
||||||
|
m_networkNotifyHandle.reset();
|
||||||
// Stop the GNS channel to unblock any stuck communications with the guest.
|
// Stop the GNS channel to unblock any stuck communications with the guest.
|
||||||
m_gnsChannel.Stop();
|
m_gnsChannel.Stop();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user