Skip to content

Commit

Permalink
Remove Wait_before_destroying_time_ms from Writer
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
  • Loading branch information
irenebm committed May 14, 2024
1 parent 03aaa3d commit a7adbf1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion amlip_cpp/src/cpp/dds/Writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ class Writer : public WriterListener
};

constexpr const unsigned int Wait_for_acknowledgments_time_s = 1;
constexpr const unsigned int Wait_before_destroying_time_ms = 200;

//! \c Writer to stream serializator
template <typename T>
Expand Down
4 changes: 0 additions & 4 deletions amlip_cpp/src/cpp/dds/impl/Writer.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ Writer<T>::~Writer()
logWarning(
AMLIPCPP_DDS_WRITER, "Writer " << *this << " is being destroyed before all messages have been sent.");
}

// TODO change this once it is fixed in fast
// Sleep for 200ms to let Readers to read the messages from this Writer before dying
eprosima::utils::sleep_for(Wait_before_destroying_time_ms);
}

template <typename T>
Expand Down

0 comments on commit a7adbf1

Please sign in to comment.