mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 13:21:54 +00:00 
			
		
		
		
	Fix silly read problem which would hang up if nobody called (bug #3042)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -106,8 +106,9 @@ static int read_exec(struct ast_channel *chan, void *data)
 | 
				
			|||||||
		if (res > -1) {
 | 
							if (res > -1) {
 | 
				
			||||||
			pbx_builtin_setvar_helper(chan, varname, tmp);
 | 
								pbx_builtin_setvar_helper(chan, varname, tmp);
 | 
				
			||||||
			ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
 | 
								ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
 | 
				
			||||||
 | 
								res = 0;
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			ast_verbose(VERBOSE_PREFIX_3 "User entered nothing\n");
 | 
								ast_verbose(VERBOSE_PREFIX_3 "User disconnected\n");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	LOCAL_USER_REMOVE(u);
 | 
						LOCAL_USER_REMOVE(u);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user