mohankreddy/javadrone

Cannot Re-connect to ARDrone after disconnect

Closed this issue · 5 comments

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:

Same situation in android devices.

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

[deleted comment]

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

https://groups.google.com/forum/?fromgroups#!topic/javadrone/iDXk4_NtjPk

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

This issue was closed by revision c1f60fd52f9f.

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

  • Changed state: Fixed