aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/xfer.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-07-10 06:25:30 +0100
committerMichael Brown <mcb30@etherboot.org>2007-07-10 06:25:30 +0100
commit4075f7596bd7b879706516fd84f4acbf19a7d2c5 (patch)
tree9f20f709e59a1b41caa24f7894267bc191267f84 /src/core/xfer.c
parentd3ad76bc746993a18b57237456345470ac381adf (diff)
downloadipxe-4075f7596bd7b879706516fd84f4acbf19a7d2c5.tar.gz
Unplug before sending close() message, to avoid screwing up interfaces
which respond to close with a reopen() (e.g. iSCSI).
Diffstat (limited to 'src/core/xfer.c')
-rw-r--r--src/core/xfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/xfer.c b/src/core/xfer.c
index 06895871..3add057b 100644
--- a/src/core/xfer.c
+++ b/src/core/xfer.c
@@ -38,8 +38,8 @@ void xfer_close ( struct xfer_interface *xfer, int rc ) {
DBGC ( xfer, "XFER %p->%p close\n", xfer, dest );
- dest->op->close ( dest, rc );
xfer_unplug ( xfer );
+ dest->op->close ( dest, rc );
xfer_put ( dest );
}