aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/qemud/qemud.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulator/qemud/qemud.c')
-rw-r--r--emulator/qemud/qemud.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/emulator/qemud/qemud.c b/emulator/qemud/qemud.c
index c578145..5edf8a6 100644
--- a/emulator/qemud/qemud.c
+++ b/emulator/qemud/qemud.c
@@ -857,8 +857,10 @@ fdhandler_shutdown( FDHandler* f )
fdhandler_remove(f);
fdhandler_prepend(f, &f->list->closing);
- /* notify the receiver that we're closing */
- receiver_close(f->receiver);
+ /* prevent later fdhandler_close() to
+ * call the receiver's close.
+ */
+ f->receiver->close = NULL;
return;
}