fixed false positives for keep_alive() not being invoked.

git-svn-id: svn://svn.berlios.de/openocd/trunk@993 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe 2008-09-24 08:42:13 +00:00
parent a8c2507dbf
commit 7442b26d45
1 changed files with 51 additions and 47 deletions

View File

@ -395,6 +395,10 @@ int gdb_put_packet(connection_t *connection, char *buffer, int len)
gdb_con->busy = 1;
int retval = gdb_put_packet_inner(connection, buffer, len);
gdb_con->busy = 0;
/* we sent some data, reset timer for keep alive messages */
kept_alive();
return retval;
}