Browse Source

Fix mutex on session dump

master
Jason Chu 6 years ago
parent
commit
5a7cfb0289
  1. 4
      dump.go

4
dump.go

@ -15,8 +15,8 @@ type sessionDump struct {
// Note that if you restore the session, you may not need to login, but you
// must reconnect to chat.
func (s *Session) DumpSession() ([]byte, error) {
s.requestMutex.RUnlock()
defer s.requestMutex.RLock()
s.requestMutex.RLock()
defer s.requestMutex.RUnlock()
fbCookies := s.client.Jar.Cookies(fbURL)
edgeCookies := s.client.Jar.Cookies(edgeURL)

Loading…
Cancel
Save