This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 67034 - Task runs twice when connecting first time to Internet
Summary: Task runs twice when connecting first time to Internet
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Brehovsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 10:38 UTC by Lukas Hasik
Modified: 2008-09-10 16:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
simple test project for 5.0 (11.02 KB, application/x-compressed)
2005-10-18 10:45 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2005-10-18 10:38:28 UTC
the SimpleCancellableTask runs again after user confirms the 'Is it OK to use
airtime' question.
Comment 1 Martin Brehovsky 2005-10-18 10:42:56 UTC
This was caused by the fact the wait screen component is starting the task
immediately, after it is displayes (via showNotify method). Because the
showNotify was called again after dismissing the dialog, the task was started
twice. 

The fix is checking if there is any task already running.
Comment 2 Lukas Hasik 2005-10-18 10:45:26 UTC
Created attachment 26071 [details]
simple test project for 5.0
Comment 3 Lukas Hasik 2007-02-16 14:17:31 UTC
verified
Comment 4 Ivan Sidorkin 2008-09-10 16:02:05 UTC
close old issues