mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -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()
|
||||
{
|
||||
// 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.
|
||||
m_gnsChannel.Stop();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user