[Spice-devel] [PATCH 2/2] worker: change spice_assert in handle_dev_stop
Frediano Ziglio
fziglio at redhat.com
Thu Nov 19 10:01:18 PST 2015
From: Marc-André Lureau <marcandre.lureau at gmail.com>
---
server/red_worker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/red_worker.c b/server/red_worker.c
index 747bb9e..f6023bb 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -6150,7 +6150,7 @@ static void handle_dev_stop(void *opaque, void *payload)
RedWorker *worker = opaque;
spice_info("stop");
- spice_assert(worker->running);
+ spice_return_if_fail(worker->running);
worker->running = FALSE;
--
2.4.3
More information about the Spice-devel
mailing list