Exceptions when running in seperate thread
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
1. run SSDP discovery in seperate thread and communicate SSDPDBUpdated to
another thread
2. try a couple of times until exception
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
in: SSDPDBUpdated
instead of:
NSUInteger index = [rootDevices indexOfObjectPassingTest:^BOOL(id obj, NSUInteger index, BOOL *stop){
do:
NSMutableArray *tempArr = [rootDevices mutableCopy];
NSUInteger index = [tempArr indexOfObjectPassingTest:^BOOL(id obj, NSUInteger
index, BOOL *stop){
same in addToDescriptionQueue
and the crashes go away...
If you need further info, please don't hesitate contacting me
Cheers
andy
Original issue reported on code.google.com by foxwerk...@gmail.com
on 14 Aug 2013 at 9:57