Skip to content

Commit ba2667f

Browse files
committed
fixup websocket server bug
1 parent ebde675 commit ba2667f

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.project

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>Scrypted-AndroidAsync</name>
3+
<name>Gradle-AndroidAsync</name>
44
<comment></comment>
55
<projects>
66
</projects>
77
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
813
<buildCommand>
914
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
1015
<arguments>
@@ -29,5 +34,6 @@
2934
<natures>
3035
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
3136
<nature>org.eclipse.jdt.core.javanature</nature>
37+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
3238
</natures>
3339
</projectDescription>

AndroidAsync/.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
1318
<buildCommand>
1419
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
1520
<arguments>
@@ -29,5 +34,6 @@
2934
<natures>
3035
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
3136
<nature>org.eclipse.jdt.core.javanature</nature>
37+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
3238
</natures>
3339
</projectDescription>

AndroidAsync/src/com/koushikdutta/async/http/server/AsyncHttpServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ protected void onEnd() {
192192

193193
@Override
194194
public void onCompleted(Exception e) {
195+
if (isSwitchingProtocols(res))
196+
return;
197+
195198
requestComplete = true;
196199
super.onCompleted(e);
197200
// no http pipelining, gc trashing if the socket dies

0 commit comments

Comments
 (0)