diff options
Diffstat (limited to 'src/libui_sdl/LAN.cpp')
-rw-r--r-- | src/libui_sdl/LAN.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libui_sdl/LAN.cpp b/src/libui_sdl/LAN.cpp index a738656..2021b3d 100644 --- a/src/libui_sdl/LAN.cpp +++ b/src/libui_sdl/LAN.cpp @@ -98,6 +98,9 @@ bool TryLoadPCap(void* lib) bool Init() { + // TODO: how to deal with cases where an adapter is unplugged or changes config?? + if (PCapLib) return true; + PCapLib = NULL; PCapAdapter = NULL; PCapPacketLen = 0; |