[asterisk-commits] kmoore: branch kmoore/stasis-device_state r383040 - /team/kmoore/stasis-devic...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 13 14:55:38 CDT 2013
Author: kmoore
Date: Wed Mar 13 14:55:35 2013
New Revision: 383040
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383040
Log:
Cleanup
Modified:
team/kmoore/stasis-device_state/main/ccss.c
Modified: team/kmoore/stasis-device_state/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-device_state/main/ccss.c?view=diff&rev=383040&r1=383039&r2=383040
==============================================================================
--- team/kmoore/stasis-device_state/main/ccss.c (original)
+++ team/kmoore/stasis-device_state/main/ccss.c Wed Mar 13 14:55:35 2013
@@ -1299,12 +1299,11 @@
{
struct stasis_device_state *dev_state = data;
enum ast_device_state new_state = dev_state->state;
- enum ast_device_state previous_state = dev_state->state;
- const char *monitor_name = dev_state->device;
+ enum ast_device_state previous_state;
struct generic_monitor_instance_list *generic_list;
struct generic_monitor_instance *generic_instance;
- if (!(generic_list = find_generic_monitor_instance_list(monitor_name))) {
+ if (!(generic_list = find_generic_monitor_instance_list(dev_state->device))) {
/* The most likely cause for this is that we destroyed the monitor in the
* time between subscribing to its device state and the time this executes.
* Not really a big deal.
More information about the asterisk-commits
mailing list