Skip to content
Snippets Groups Projects
Commit 0e66b7eb authored by rswindell's avatar rswindell
Browse files

Abort the retry-loop in modem_command() if the process is being terminated

(e.g. with ^C).
parent cbae679d
Branches
Tags
No related merge requests found
......@@ -686,6 +686,8 @@ BOOL modem_command(COM_HANDLE com_handle, const char* cmd)
int i;
for(i=0;i<=mdm_cmdretry;i++) {
if(terminated)
return FALSE;
if(i) {
lprintf(LOG_WARNING,"Retry #%u: sending modem command (%s) on %s", i, cmd, com_dev);
lprintf(LOG_DEBUG,"Dropping DTR on %s", com_dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment