public boolean stopServerService() { clients.clear(); clientsArray.clear(); boolean stopped = context.stopService(intent); if (stopped) { timer.running = false; initalUpdateCalled = false; } Log.i(C.TAG, "Trying to stop buffer service: " + stopped); return stopped; }