IllegalArgumentEx -> IllegalStateEx
Brought to you by:
mdwelsh
I was a bit nonplussed when I received an IllegalArgumentException on my call to ATcpConnection.startReader(...). Looking at the source revealed that this exception wasn't caused by an incorrect argument but rather by the object being in the wrong state.
Attached is a patch to fix a few of these occurrences in the aSocket library. Can this fix be accepted in the mainline?