sebi2k1/restcan — Issue #8: Deadlock in channel.stop() 
Author: sebi2k1
Created: 2012-01-22 13:13:29+00:00
State: open

join() on receiver thread hangs forever since thread never leaves the loop. Force correct cleanup by destroying socket so thread is release from select().