opengitway / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

Cancel l2cap rtx timer before freeing a channel #404

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've encountered a problem were a timer struct was being accessed by the run 
loop after it was freed. I believe it was caused by an l2cap channel being 
freed while the timer was active. To fix it, I've added a call to 
l2cap_stop_rtx before every call to btstack_memory_l2cap_channel_free and I 
believe it fixed it. I believe it's a safe thing to do anyway.

Original issue reported on code.google.com by kob...@mce-sys.com on 17 Jun 2014 at 7:04

GoogleCodeExporter commented 9 years ago
Fixed in r2706. I'll also replace the tricky code to iterate over a list while 
removing elements with the iterator that I created recently.

Original comment by matthias.ringwald@gmail.com on 31 Jul 2014 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by matthias.ringwald@gmail.com on 31 Jul 2014 at 8:15