Export to GitHub

apns-sharp - issue #17

Main Thead blocked forever when calling NotificationService.Close()


Posted on Jan 5, 2010 by Massive Giraffe

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()

Comment #1

Posted on Jan 5, 2010 by Happy Lion

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.

Status: Fixed

Labels:
Type-Defect Priority-Medium