--- np2/fdd/sxsi.c 2005/04/05 09:12:24 1.20 +++ np2/fdd/sxsi.c 2005/04/05 20:37:07 1.21 @@ -60,10 +60,10 @@ static void nc_destroy(SXSIDEV sxsi) { static void sxsi_disconnect(SXSIDEV sxsi) { if (sxsi) { + if (sxsi->flag & SXSIFLAG_FILEOPENED) { #if defined(SUPPORT_IDEIO) - ideio_notify(sxsi->drv, 0); + ideio_notify(sxsi->drv, 0); #endif - if (sxsi->flag & SXSIFLAG_FILEOPENED) { (*sxsi->close)(sxsi); } if (sxsi->flag & SXSIFLAG_READY) {