Plug-up / daplug-java

Daplug Java APIs
Apache License 2.0
2 stars 2 forks source link

Each call of getDonglesList() increments the list of devices #4

Closed vsilent closed 9 years ago

vsilent commented 9 years ago

package com.oweb.plugup_auth.etc; import io.daplug.session.DaplugSession;

public class PlugUpTest {

public static void main(String[] args) {
    DaplugSession daplugSession = new DaplugSession();
    try{

        daplugSession.getDonglesList(); System.out.print("\n");
        daplugSession.getDonglesList(); System.out.print("\n");
        daplugSession.getDonglesList(); System.out.print("\n");
        daplugSession.getDonglesList(); System.out.print("\n");

    }catch (Exception ex){
        System.out.println(ex.getMessage());
    }
}

}

output: List all Daplug Dongle (HID/WINUSB) Dongle 0,WINUSB,1682535504,Plug-up

List all Daplug Dongle (HID/WINUSB) Dongle 0,WINUSB,1682535504,Plug-up Dongle 0,WINUSB,1682657464,Plug-up

List all Daplug Dongle (HID/WINUSB) Dongle 0,WINUSB,1682535504,Plug-up Dongle 0,WINUSB,1682657464,Plug-up Dongle 0,WINUSB,1682664056,Plug-up

List all Daplug Dongle (HID/WINUSB) Dongle 0,WINUSB,1682535504,Plug-up Dongle 0,WINUSB,1682657464,Plug-up Dongle 0,WINUSB,1682664056,Plug-up Dongle 0,WINUSB,1682669360,Plug-up

description: Each call of getDonglesList() appends a device to the list of device handlers. But we have only one device plugged in. Please check it.

benamsaap commented 9 years ago

Bug fixed.. Thank you for reporting..