From: Toni Wilen Date: Sat, 10 Mar 2018 10:42:20 +0000 (+0200) Subject: Fix hang when SCSI bus was empty. X-Git-Tag: 4000~152 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=e6a00a7eff118e7f67a874d6381fd1bffee24668;p=francis%2Fwinuae.git Fix hang when SCSI bus was empty. --- diff --git a/a2091.cpp b/a2091.cpp index 200d6428..6c8cba72 100644 --- a/a2091.cpp +++ b/a2091.cpp @@ -313,6 +313,7 @@ static struct wd_state *allocscsi(struct wd_state **wd, struct romconfig *rc, in freencrunit(*wd); *wd = NULL; } + configured = true; if ((*wd) == NULL) { scsi = xcalloc(struct wd_state, 1); for (int i = 0; i < MAX_SCSI_UNITS; i++) { @@ -328,7 +329,6 @@ static struct wd_state *allocscsi(struct wd_state **wd, struct romconfig *rc, in } } } - configured = true; return *wd; }