bitletorg / weupnp

A tiny UPnP (Universal Plug and Play) client library written in Java
http://bitletorg.github.io/weupnp
100 stars 36 forks source link

(Fix) Break out of loop after device is discovered #6

Closed CliftonAncell closed 10 years ago

CliftonAncell commented 10 years ago

Prior to this fix, after a gateway device was discovered, the loop would continue and you would have to wait for the SocketTimeoutException (3 seconds) before the thread would finish. This speeds up discovery by breaking out of the loop after the device is added.

abahgat commented 10 years ago

Thank you for taking care of this!