FRONTPANEL: Fix repeating register data gathering lock problem (COVERITY)

This commit is contained in:
Mark Pizzolato 2017-03-20 23:37:50 -07:00
parent 2d1b969cb7
commit b2cd329f4c

View file

@ -2003,6 +2003,7 @@ while ((p->sock != INVALID_SOCKET) &&
if (p->callback) { if (p->callback) {
pthread_mutex_unlock (&p->io_lock); pthread_mutex_unlock (&p->io_lock);
p->callback (p, p->simulation_time, p->callback_context); p->callback (p, p->simulation_time, p->callback_context);
pthread_mutex_lock (&p->io_lock);
} }
} }
if (!strcmp (s + strlen (sim_prompt), register_get_echo)) { if (!strcmp (s + strlen (sim_prompt), register_get_echo)) {