Skip to content

Commit

Permalink
bugfix for TAP down
Browse files Browse the repository at this point in the history
  • Loading branch information
kcratie committed Sep 20, 2018
1 parent b0624ea commit d17e474
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions trunk/src/linux/tapdev_lnx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,10 @@ void TapDevLnx::Up()
void TapDevLnx::Down()
{
is_good_ = false;
reader_->Quit();
writer_->Quit();
if(reader_)
reader_->Quit();
if(writer_)
writer_->Quit();
reader_.reset();
writer_.reset();
SetFlags(0, IFF_UP);
Expand Down

0 comments on commit d17e474

Please sign in to comment.