public void onSuccess(Void v) { // To make sure DISCONNECT has been flushed out to the socket onRefillCalled = false; refiller = new Runnable() { public void run() { if(onRefillCalled) { stop.run(); } } }; if(transport != null){ transport.flush(); } } public void onFailure(Throwable value) {
public void flush() { next.flush(); }
public void onSuccess(Void v) { // To make sure DISCONNECT has been flushed out to the socket onRefillCalled = false; refiller = new Runnable() { public void run() { if(onRefillCalled) { stop.run(); } } }; if(transport != null){ transport.flush(); } } public void onFailure(Throwable value) {