Преглед изворни кода

exit when oauth state is deleted

abhishek9686 пре 1 година
родитељ
комит
d53105fd7a
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
 		}
 	}()