fixed deadlock bug in finalizing the instrumentation buffer
@@ -179,7 +179,7 @@ void st_buffer_finalize(st_stats_buffer *buffer, int type)
{
MPI_File *fh;
// check if any data needs to be written out
- if (!g_st_disable_out && buffer->count)
+ if (!g_st_disable_out)
st_buffer_write(buffer, 1, type);
if (g_tw_mynode == g_tw_masternode)
