]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/dsi/dsi_close.c
Merge sf
[netatalk.git] / libatalk / dsi / dsi_close.c
index d409814f5f82c038e736368b8b2bad3ca3138f06..6362182ba49fe6d259dd67277eb8cc0f7df6b7e3 100644 (file)
@@ -17,7 +17,7 @@
 void dsi_close(DSI *dsi)
 {
   /* server generated. need to set all the fields. */
-  if (!(dsi->flags & DSI_SLEEPING)) {
+  if (!(dsi->flags & DSI_SLEEPING) && !(dsi->flags & DSI_DISCONNECTED)) {
       dsi->header.dsi_flags = DSIFL_REQUEST;
       dsi->header.dsi_command = DSIFUNC_CLOSE;
       dsi->header.dsi_requestID = htons(dsi_serverID(dsi));