From: oharboe Date: Fri, 12 Sep 2008 10:53:10 +0000 (+0000) Subject: follow up to keep_alive() fix. process target events before returning from reset... X-Git-Tag: v0.1.0~313 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d28931c2d41e9f75f6f596955c3f75595c902e09;p=openocd follow up to keep_alive() fix. process target events before returning from reset procedure. git-svn-id: svn://svn.berlios.de/openocd/trunk@986 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/target/target.c b/src/target/target.c index aef58d3e..a096045c 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -430,6 +430,10 @@ static int NEW_target_process_reset(struct command_context_s *cmd_ctx, enum targ sprintf( buf, "ocd_process_reset %s", n->name ); Jim_Eval( interp, buf ); + + /* We want any events to be processed before the prompt */ + target_call_timer_callbacks_now(); + return ERROR_OK; }