itm / wsn-device-drivers

Drivers for Wireless Sensor Network Devices
Other
6 stars 4 forks source link

Make sure a Connection can only be used once #58

Closed mlegenhausen closed 13 years ago

mlegenhausen commented 13 years ago

Currently it is possible to connect multiple times to different devices. This should not be possible cause connections are related to Streams that are not intended to be reopened. So make sure that after a close the connect method will throw an exception. When calling the close method don't set the streams to null.

This issue is related to https://github.com/itm/testbed-runtime/issues/67#issuecomment-1572086