/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
if (CANT_HAPPEN(iop->last_out > len))
iop->last_out = 0;
- if (len - iop->last_out < iop->bufsize)
+ if (len - iop->last_out < iop->bufsize) {
+ if (wait)
+ ef_make_stale();
return 0;
+ }
return io_output(iop, wait);
}