mcollina/mosca — pull request #56 by samirnaik (2013-09-09 03:45:30+00:00)
Title: Call unsubAndClose on client timeout instead of close.

Noticed the error: "tryint to send a packet to a disconnected client" after a mosca was running for a while. Traced it down to timed out clients not calling the correct close method. They should be calling unsubAndClose instead of just close. Tried to add a test case for this, but wasn't able to successfully repro this in the unit test framework.