while(isRunning()) { try { waitForConnection(); } catch(InterruptedException e) { Log.i(getTag(), "Interrupted while waiting for connection - stopping the source");
while(isRunning()) { try { waitForConnection(); } catch(InterruptedException e) { Log.i(getTag(), "Interrupted while waiting for connection - stopping the source");