saffae / javadrone

Automatically exported from code.google.com/p/javadrone
0 stars 0 forks source link

Cannot Re-connect to ARDrone after disconnect #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create ARDrone object.
2. Invoke connect() and waitForReady().
3. invoke disconnect()
4. wait a bit
5. invoke connect()

What is the expected output? What do you see instead?
An IOException for Address already in use is received.

What version of the product are you using? On what operating system?
1.1 Mac OS X 10.6.7

Please provide any additional information below.
The problem can be corrected with two changes to the NavDataReader and 
VideoReader classes.
1. Set the channel socket to reuse addresses:  invoke setReuseAddress(true) on 
the socket before binding.
2. Modify the run method to invoke disconnect after the while(!done) loop 
terminates (not just in the if(done) statement).

See changes marked GWB in attached file.

Original issue reported on code.google.com by braug...@gmail.com on 30 Jun 2011 at 7:31

Attachments:

GoogleCodeExporter commented 8 years ago
Same situation in android devices.

Original comment by spc...@gmail.com on 28 Jul 2011 at 8:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by kroko...@gmail.com on 19 Jul 2012 at 5:59

GoogleCodeExporter commented 8 years ago
https://groups.google.com/forum/?fromgroups#!topic/javadrone/iDXk4_NtjPk

Original comment by kroko...@gmail.com on 23 Jul 2012 at 4:29

GoogleCodeExporter commented 8 years ago
This issue was closed by revision c1f60fd52f9f.

Original comment by dshm...@codeminders.com on 25 Jul 2012 at 5:15