mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 01:56:55 +00:00
Fix 'sub' commands after 'ready'
This commit is contained in:
parent
801a57a1fa
commit
822e298d5d
5 changed files with 65 additions and 49 deletions
|
@ -104,14 +104,8 @@ type ClientInfo struct {
|
|||
// Protected by Mutex.
|
||||
CurrentChannels []string
|
||||
|
||||
// List of channels that we have not yet checked current chat-related channel info for.
|
||||
// This lets us batch the backlog requests.
|
||||
// Protected by Mutex.
|
||||
PendingSubscriptionsBacklog []string
|
||||
|
||||
// A timer that, when fired, will make the pending backlog requests.
|
||||
// Usually nil. Protected by Mutex.
|
||||
MakePendingRequests *time.Timer
|
||||
// True if the client has already sent the 'ready' command
|
||||
ReadyComplete bool
|
||||
|
||||
// Server-initiated messages should be sent here
|
||||
// This field will be nil before it is closed.
|
||||
|
@ -157,8 +151,6 @@ func (cv *ClientVersion) Equal(cv2 *ClientVersion) bool {
|
|||
return cv.Major == cv2.Major && cv.Minor == cv2.Minor && cv.Revision == cv2.Revision
|
||||
}
|
||||
|
||||
const usePendingSubscrptionsBacklog = false
|
||||
|
||||
func (bct BacklogCacheType) Name() string {
|
||||
switch bct {
|
||||
case CacheTypeInvalid:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue