commit | 46eb526e7e1d3adb7114cb90c43b00fed232cc0c | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu May 10 16:30:35 2012 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu May 10 16:30:35 2012 -0700 |
tree | d1847ae8b4c341778617d545a974843dcbf6bc6e | |
parent | 282a10b1a758deb1d44bcdde008694fefaf37e47 [diff] [blame] |
Finalizing sync logic implementation
diff --git a/model/sync-interest-table.cc b/model/sync-interest-table.cc index 469e4e4..80f8862 100644 --- a/model/sync-interest-table.cc +++ b/model/sync-interest-table.cc
@@ -48,7 +48,9 @@ expireInterests (); recursive_mutex::scoped_lock lock (m_mutex); - BOOST_ASSERT (m_table.size () != 0); + if (m_table.size () == 0) + BOOST_THROW_EXCEPTION (Error::InterestTableIsEmpty ()); + Interest ret = *m_table.begin (); m_table.erase (m_table.begin ());