remove misplaced assert

This commit is contained in:
Eric House 2019-01-18 06:51:23 -08:00
parent ae56f23f66
commit 4878afb185

View file

@ -664,16 +664,14 @@ public class BTService extends XWService {
void setService( Context context, BTService service )
{
synchronized ( mServiceHolder ) {
if ( null == mServiceHolder[0] ) {
Log.d( TAG, "setService(): setting. notifying all!!!" );
if ( service != mServiceHolder[0] ) {
Assert.assertNotNull( context );
mContext = context; // Use Service instead of Receiver (possibly)
mServiceHolder[0] = service;
if ( service != null ) {
Log.d( TAG, "setService(): setting. notifying all!!!" );
mServiceHolder.notifyAll();
}
} else {
Assert.assertTrue( service == mServiceHolder[0] );
}
}
}