Kludged around hang in hier_block2. Merged -r6189:6191 from eb/fg
[debian/gnuradio] / gnuradio-core / src / lib / runtime / gr_top_block_impl.cc
index f0b67ddde12a11dedafeba90ae9a46c662a88870..6796540773ff45ceb0a218e049b6c13e3319be21 100644 (file)
@@ -167,7 +167,7 @@ void
 gr_top_block_impl::unlock()
 {
   omni_mutex_lock lock(d_reconf);
-  if (d_lock_count == 0)
+  if (d_lock_count <= 0)
     throw std::runtime_error("unpaired unlock() call");
 
   d_lock_count--;