Commit b0b407ae authored by Krzysztof Karas's avatar Krzysztof Karas Committed by Tomasz Zawadzki
Browse files

examples/hotplug: add spdk_rpc_close call



Close RPC server in case it was opened by
wait_for_rpc_call() function.

This change is not directly related to the
rest of the series, but without it we can
expect errors in hotplug application, so it
should be introduced before other patches.

Change-Id: I9c960e7960cf88f60f9764b1fce7af538d25028f
Signed-off-by: default avatarKrzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21316


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
parent 1e90edaa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -606,6 +606,7 @@ main(int argc, char **argv)
	}

cleanup:
	spdk_rpc_close();
	spdk_env_fini();
	return rc;
}