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 ) void setService( Context context, BTService service )
{ {
synchronized ( mServiceHolder ) { synchronized ( mServiceHolder ) {
if ( null == mServiceHolder[0] ) { if ( service != mServiceHolder[0] ) {
Log.d( TAG, "setService(): setting. notifying all!!!" );
Assert.assertNotNull( context ); Assert.assertNotNull( context );
mContext = context; // Use Service instead of Receiver (possibly) mContext = context; // Use Service instead of Receiver (possibly)
mServiceHolder[0] = service; mServiceHolder[0] = service;
if ( service != null ) { if ( service != null ) {
Log.d( TAG, "setService(): setting. notifying all!!!" );
mServiceHolder.notifyAll(); mServiceHolder.notifyAll();
} }
} else {
Assert.assertTrue( service == mServiceHolder[0] );
} }
} }
} }