Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e628d1

Browse files
author
zhourenjian@gmail.com
committed
Fixing bugs on reconnecting on same pipe
1 parent62d8721 commit6e628d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎sources/net.sf.j2s.ajax/ajaxpipe/net/sf/j2s/ajax/SimplePipeRequest.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ protected static void sendRequest(HttpRequest request, String method, String url
225225
*/
226226
publicstaticvoidpipe(finalSimplePipeRunnablerunnable) {
227227
runnable.ajaxIn();
228+
runnable.lastLiveDetected =System.currentTimeMillis();
228229
if (getRequstMode() ==MODE_LOCAL_JAVA_THREAD) {
229230
ThreadUtils.runTask(newRunnable() {
230231
publicvoidrun() {
@@ -249,6 +250,9 @@ public void run() {
249250
*/
250251
@J2SIgnore
251252
staticvoidkeepPipeLive(finalSimplePipeRunnablepipe) {
253+
if (pipe.pipeKey ==null) {
254+
return;
255+
}
252256
pipe.updateStatus(true);
253257
if (getRequstMode() !=MODE_LOCAL_JAVA_THREAD &&getPipeMode() ==MODE_PIPE_QUERY) {
254258
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp