Skip to content

Commit

Permalink
Fixed bug in LoopbackTransport initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mbknust committed May 14, 2024
1 parent b3a10cf commit b5825da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/transport/raw/tests/NetworkTestHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ class LoopbackTransportDelegate
class LoopbackTransport : public Transport::Base
{
public:
void InitLoopbackTransport(System::Layer * systemLayer) { mSystemLayer = systemLayer; }
void InitLoopbackTransport(System::Layer * systemLayer) {
Reset();
mSystemLayer = systemLayer;
}

void ShutdownLoopbackTransport()
{
// Make sure no one left packets hanging out that they thought got
Expand Down

0 comments on commit b5825da

Please sign in to comment.