pesaply / smslib

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

stopService() during startService() #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

If i call stopService() while startService() is running (from another 
Thread, e.g. from a AWT/Swing-Event) this method returns without anything 
done.

It would be nice if SMSlib would stop it's work and (the important part) 
release the serial port.

Java: 1.6.0_03
RXTX: 2.1
SMSlib: 3.0.4 (with patched "USB-Reading-Thread" for Linux)

Original issue reported on code.google.com by derj...@googlemail.com on 11 Nov 2007 at 3:31

GoogleCodeExporter commented 9 years ago
Hi,

Please mark both startService() and stopService() methods as "synchronized". 
This
should solve the reported problem.

The fix will be included in next release.

Thanks.

Original comment by T.Delenikas on 12 Nov 2007 at 11:19