]> git.lizzy.rs Git - go-anidb.git/blobdiff - auth.go
anidb: Try to get (*AniDB).User() from the cache if it's unset
[go-anidb.git] / auth.go
diff --git a/auth.go b/auth.go
index 26714fd6b8e8d9c9443b912bbdde546e0915ec0a..6e4af5a83f4917c97d71854f0d21b2aeb5a2fbba 100644 (file)
--- a/auth.go
+++ b/auth.go
@@ -117,6 +117,7 @@ func (udp *udpWrap) ReAuth() udpapi.APIReply {
                udp.connected = err == nil
 
                if udp.connected {
+                       // We can't use SendRecv here as it would deadlock
                        ch := make(chan udpapi.APIReply, 1)
                        udp.sendQueueCh <- paramSet{
                                cmd:    "USER",