1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-02-07 16:51:53 +00:00

KA10: Make TEN11 more robust in the face of network errors.

This commit is contained in:
Lars Brinkhoff
2019-07-13 09:44:58 -04:00
committed by Richard Cornwell
parent a8bae507b3
commit ba534e8d1f

View File

@@ -262,7 +262,11 @@ static int read_word (int addr, int *data)
build (request, (addr >> 8) & 0377);
build (request, (addr) & 0377);
transaction (request, response);
if (transaction (request, response) == -1) {
/* Network error. */
*data = 0;
return 0;
}
switch (response[0])
{