Przeglądaj źródła

fix panic caused by nil session race condition

Mike 2 tygodni temu
rodzic
commit
ab620ac51f
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0 2
      server/webapi/handlers/session.go

+ 0 - 2
server/webapi/handlers/session.go

@@ -653,9 +653,7 @@ func (h *SessionHandler) EndSession(w http.ResponseWriter, r *http.Request) {
 			}
 			}
 		}
 		}
 
 
-		// Remove OSCAR session
 		h.OSCARSessionManager.RemoveSession(session.OSCARSession.Session())
 		h.OSCARSessionManager.RemoveSession(session.OSCARSession.Session())
-		session.OSCARSession = nil
 	}
 	}
 
 
 	// Remove session
 	// Remove session