diff --git a/apps/app_queue.c b/apps/app_queue.c
index 0a97cdf461c70f68bccce08d8f9698c6108826c9..d620fb48046743eef5e33340afa8eb140a89a30a 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -290,8 +290,8 @@ static int has_no_members(struct ast_call_queue *q)
 	member = q->members;
 	while(empty && member) {
 		switch(member->status) {
-		case AST_CAUSE_NOSUCHDRIVER:
-		case AST_CAUSE_UNREGISTERED:
+		case AST_DEVICE_UNAVAILABLE:
+		case AST_DEVICE_INVALID:
 			/* Not logged on, etc */
 			break;
 		default: