ramsay-t / ShefRobot

Wrapper classes for Java code to use Lego robots.
3 stars 1 forks source link

Add exception handling for turned off robots at close. #32

Open Robadob opened 8 years ago

Robadob commented 8 years ago

Add catch for java.rmi.ConnectException which nests java.net.ConnectException to the loops calling m.close() and s.close() in Robot.close()

These are thrown if the robot is turned off when the code tries to shut it down.

Maybe also add this same handling to generic thread managers to tell users robot appears disconnected or similar on connection timeout.