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 68b73e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/transport/raw/tests/NetworkTestHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ 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 68b73e9

Please sign in to comment.