bankd: Disconnect client if we enter state BW_ST_CONN_CLIENT_UNMAPPED

Change-Id: Ifc1741610fc8a3c0413844e0c37a6fcbb2c55067
This commit is contained in:
Harald Welte 2019-03-11 18:38:44 +01:00
parent 2507597c42
commit 653d6a0b38
1 changed files with 2 additions and 0 deletions

View File

@ -767,6 +767,8 @@ static void *worker_main(void *arg)
rc = worker_transceive_loop(g_worker);
if (rc < 0)
break;
if (g_worker->state == BW_ST_CONN_CLIENT_UNMAPPED)
break;
}
LOGW(g_worker, "Error %d occurred: Cleaning up state\n", rc);