Ver Fonte

exit when oauth state is deleted

abhishek9686 há 1 ano atrás
pai
commit
d53105fd7a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      auth/host_session.go

+ 1 - 1
auth/host_session.go

@@ -156,7 +156,7 @@ func SessionHandler(conn *websocket.Conn) {
 				answer <- *cachedReq
 				break
 			}
-			time.Sleep(500) // try it 2 times per second to see if auth is completed
+			time.Sleep(time.Second)
 		}
 	}()