#NEWLINE# def unregisterDispatcher( self , dispatcher , message ) : #NEWLINE# #INDENT# if ( message == 'dying' ) : #NEWLINE# #INDENT# self . dispatchers . pop ( dispatcher , None ) #NEWLINE# #UNINDENT# if ( len ( self . dispatchers ) == 0 ) : #NEWLINE# #INDENT# self . worker . send ( content = 'kill' , to = message . workerName )