[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-mobile/master] Started WebSocket on DataChannelOpen
commit 46eb111be5d24e5452bbba7821760cf398403e3b
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date: Fri Jun 26 17:34:04 2020 +0530
Started WebSocket on DataChannelOpen
---
app/src/main/java/org/torproject/snowflake/MyPersistentService.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/src/main/java/org/torproject/snowflake/MyPersistentService.java b/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
index 9e073d5..9df3889 100644
--- a/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
+++ b/app/src/main/java/org/torproject/snowflake/MyPersistentService.java
@@ -311,6 +311,7 @@ public class MyPersistentService extends Service {
if (STATE == DataChannel.State.OPEN) {
updateNotification("Connection Established. Serving one client.");
+ startWebSocket();
} else if (STATE == DataChannel.State.CLOSED) {
updateNotification("Connection is closed. Resending offer...");
closeConnectionAndResend();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits