Skip to content

Commit

Permalink
Add sleeep
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Dec 20, 2023
1 parent f13e70e commit 0138904
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asyn/drvAsynSerial/drvAsynIPServerPort.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ static void ttyCleanup(void *pPvt)
asynPrint(tty->pasynUser, ASYN_TRACE_FLOW, "drvAsynIPServerPort:ttyCleanup %s: shutdown socket %d\n", tty->portName, tty->fd);
epicsSocketDestroy(tty->fd);
tty->fd = INVALID_SOCKET;
epicsThreadSleep(0.1); /* wait for accept thread to terminate */
}
free(tty->portName);
free(tty->serverInfo);
Expand Down

0 comments on commit 0138904

Please sign in to comment.