Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unread 01-29-12, 04:43 PM   #1
algritz
Claw of Regulos
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 11
How do you "wait" without crashing the game client.

I want to process my mailbox, then take the attachments and finally delete the email.

Two of these actions interacts with the global command queue.

If I want to make sure everything is processed in order, I need to be able to wait after the queue. As such I've created a small function that loops while the queue becomes available.

Code:
local function wait_for_queue()
	local queue_is_not_ready = Inspect.Queue.Status("global")
	while queue_is_not_ready == true do
		queue_is_not_ready = Inspect.Queue.Status("global")
	end
end
Unfortunately when I get in this "loop" the CPU time gets eaten entirely and crashes the Game client.

My question is how do you get to wait for the Queue without crashing the game client?
algritz is offline   Reply With Quote
 

Go BackRiftui » AddOns, Layouts and Macros » Help/Support » How do you "wait" without crashing the game client.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off