private void receivedCancel() { switch (state) { case BUFFERING: case DEMANDING: case IDLE: cancelled(); case DRAINING: state = DONE; break; } cleanup(); subscriber = null; }
private void receivedCancel() { switch (state) { case BUFFERING: case DEMANDING: case IDLE: cancelled(); case DRAINING: state = DONE; break; } cleanup(); subscriber = null; }