[Desc.]
[Issue]
Change-Id: Ifc88e28d9844a8a9aa9085518f26c62c8a569b4f
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
{
final ByteBuffer buf = ByteBuffer.wrap(data, 0, length < 0 ? data.length : length );
final AtomicBoolean running = new AtomicBoolean( true );
+ Timer timer = null;
if ( 0 < timeout ) {
- final Timer timer = new Timer();
+ timer = new Timer();
timer.schedule( new TimerTask()
{
@Override
}
if ( buf.position() == buf.limit() )
{
+ if(timer != null)
+ timer.cancel();
return ;
}
Log.d("sdb", "write: Timeout");