[Owfs-developers] Bug when no adapter

2006-03-19 Thread Christian Magnusson
I just noticed that a bug was introduced lately when owserver doesnt find any usb adapter at startup. This could eventually happen when adapter was found and later was reconnected due to some error. BUS_selectection_error() is called, and reconnect is initiated. A segmentation fault

RE: [Owfs-developers] Bug when no adapter

2006-03-19 Thread Alfille, Paul H.,M.D.
Hi Christian, welcome back! I noticed the error too, and have a fix. 1. the locking should be BUSLOCK, not device lock. 2. A per-bus flag that increments with, say, RESET errors, will trigger a reconnect after a certain threshold. 3. The flag will be set to 0 if reconnect is successful, or if a