﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1652	Sleep in TimerFunc	hunt	Jon	"Form does not close on the first try because of sleep in TimerFunc.

{{{
#Include <Timers.au3>
#include <GUIConstantsEx.au3>

Opt(""GUIOnEventMode"", 1)

$hGUI = GUICreate(""Form"", 200, 100)
GUISetOnEvent($GUI_EVENT_CLOSE, ""__Exit"")
GUISetState()

_Timer_SetTimer($hGUI, 10, ""__Timer"")

While 1
    Sleep(10)
WEnd

Func __Timer($hWnd, $Msg, $iIDTimer, $dwTime)
	Sleep(1)
EndFunc

Func __Exit()
	_Timer_KillAllTimers($hGUI)
    Exit
EndFunc
}}}

"	Bug	assigned		AutoIt	3.3.6.0	None			
