#NEWLINE# def queueSpaceCallback( self , result ) : #NEWLINE# #INDENT# if self . queueFull . called : #NEWLINE# #INDENT# log . clients ( ( '%s send queue has space available' % self . connectedProtocol ) ) #NEWLINE# self . queueFull = Deferred ( ) #NEWLINE# self . queueFull . addCallback ( result . queueFullCallback ) #NEWLINE# state . events . cacheSpaceAvailable ( ) #NEWLINE# #UNINDENT# self . queueHasSpace = Deferred ( ) #NEWLINE# self . queueHasSpace . addCallback ( self . queueSpaceCallback )