mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merged revisions 114676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r114676 | russell | 2008-04-25 17:04:46 -0500 (Fri, 25 Apr 2008) | 7 lines Lock the channel around datastore access (closes issue #12527) Reported by: mnicholson Patches: pbx_lua4.diff uploaded by mnicholson (license 96) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -982,7 +982,9 @@ static lua_State *lua_get_state(struct ast_channel *chan) | ||||
| 		} | ||||
| 		return L; | ||||
| 	} else { | ||||
| 		ast_channel_lock(chan); | ||||
| 		datastore = ast_channel_datastore_find(chan, &lua_datastore, NULL); | ||||
| 		ast_channel_unlock(chan); | ||||
|  | ||||
| 		if (!datastore) { | ||||
| 			/* nothing found, allocate a new lua state */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user