@ -1560,9 +1560,12 @@ static bool dcb_set_state_nomutex(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        case DCB_STATE_ALLOC:
 | 
					        case DCB_STATE_ALLOC:
 | 
				
			||||||
                switch (new_state) {
 | 
					                switch (new_state) {
 | 
				
			||||||
                case DCB_STATE_POLLING:      /*< for client requests */
 | 
								/** fall through, for client requests */
 | 
				
			||||||
                case DCB_STATE_LISTENING:    /*< for connect listeners */
 | 
								case DCB_STATE_POLLING: 
 | 
				
			||||||
                case DCB_STATE_DISCONNECTED: /*< for failed connections */
 | 
								/** fall through, for connect listeners */
 | 
				
			||||||
 | 
								case DCB_STATE_LISTENING: 
 | 
				
			||||||
 | 
								/** for failed connections */
 | 
				
			||||||
 | 
								case DCB_STATE_DISCONNECTED: 
 | 
				
			||||||
				dcb->state = new_state;
 | 
									dcb->state = new_state;
 | 
				
			||||||
				succp = true;
 | 
									succp = true;
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
@ -1598,7 +1601,7 @@ static bool dcb_set_state_nomutex(
 | 
				
			|||||||
                
 | 
					                
 | 
				
			||||||
        case DCB_STATE_NOPOLLING:
 | 
					        case DCB_STATE_NOPOLLING:
 | 
				
			||||||
                switch (new_state) {
 | 
					                switch (new_state) {
 | 
				
			||||||
                case DCB_STATE_ZOMBIE:
 | 
								case DCB_STATE_ZOMBIE: /*< fall through */
 | 
				
			||||||
				dcb->state = new_state;
 | 
									dcb->state = new_state;
 | 
				
			||||||
			case DCB_STATE_POLLING: /*< ok to try but state can't change */
 | 
								case DCB_STATE_POLLING: /*< ok to try but state can't change */
 | 
				
			||||||
				succp = true;
 | 
									succp = true;
 | 
				
			||||||
@ -1611,7 +1614,7 @@ static bool dcb_set_state_nomutex(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        case DCB_STATE_ZOMBIE:
 | 
					        case DCB_STATE_ZOMBIE:
 | 
				
			||||||
                switch (new_state) {
 | 
					                switch (new_state) {
 | 
				
			||||||
                case DCB_STATE_DISCONNECTED:
 | 
								case DCB_STATE_DISCONNECTED: /*< fall through */
 | 
				
			||||||
				dcb->state = new_state;
 | 
									dcb->state = new_state;
 | 
				
			||||||
			case DCB_STATE_POLLING: /*< ok to try but state can't change */
 | 
								case DCB_STATE_POLLING: /*< ok to try but state can't change */
 | 
				
			||||||
				succp = true;
 | 
									succp = true;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user