snnagar / apns-sharp

Automatically exported from code.google.com/p/apns-sharp
0 stars 0 forks source link

Main Thead blocked forever when calling NotificationService.Close() #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. new a NotificationService like in JdSoft.Apple.Apns.Notifications.Test
2. Send out notifications correctly
3. call the NotificationService.Close() function when the App is about to close

What is the expected output? What do you see instead?
Should return and run Dispose(), but it instead blocked at Close() and
output the says Cleaning Up...

What version of the product are you using? On what operating system?
1.0.2.0
My app is developing under VS2005 in WinXP with .Net Framkwork 3.5 installed

Please provide any additional information below.
Debug mode shows a thread(not the main one) keep running
NotificationConnection.workerMethod()

Original issue reported on code.google.com by georgela...@gmail.com on 5 Jan 2010 at 9:15

GoogleCodeExporter commented 9 years ago
Should be fixed in SVN now.  I had neglected to check the closed flag's state 
in the
worker method's loop in the NotificationConnection object.

Original comment by jond...@gmail.com on 5 Jan 2010 at 2:27