mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.23k stars 243 forks source link

Fix for Issue #537 #539

Closed avl42 closed 3 years ago

avl42 commented 3 years ago

I apologize that this even happened in the first place... pah! It's eclipse's fault, for apparently working despite the bug ;-)

Explanation:

When a timeout is set on a Socket, then by documentation the read(...) call throws an exception if it doesn't receive data in time. eclipse instead just silently returned 0 bytes without throwing an exception, thus I forgot to add the necessary try-catch block.

For now I cannot try this change with eclipse, so I do hope that eclipse at least won't complain about the catch...

mabe02 commented 3 years ago

Thanks!