Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
969e9f2e
Commit
969e9f2e
authored
Mar 01, 2016
by
Johny Mattsson
Browse files
Fix fatal crash if enduser_setup.stop() called twice.
parent
a3d9d3ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/enduser_setup.c
View file @
969e9f2e
...
@@ -332,7 +332,8 @@ static void enduser_setup_check_station_stop(void)
...
@@ -332,7 +332,8 @@ static void enduser_setup_check_station_stop(void)
{
{
ENDUSER_SETUP_DEBUG
(
lua_getstate
(),
"enduser_setup_check_station_stop"
);
ENDUSER_SETUP_DEBUG
(
lua_getstate
(),
"enduser_setup_check_station_stop"
);
os_timer_disarm
(
&
(
state
->
check_station_timer
));
if
(
state
!=
NULL
)
os_timer_disarm
(
&
(
state
->
check_station_timer
));
}
}
...
@@ -1197,7 +1198,7 @@ static void enduser_setup_dns_stop(void)
...
@@ -1197,7 +1198,7 @@ static void enduser_setup_dns_stop(void)
{
{
ENDUSER_SETUP_DEBUG
(
lua_getstate
(),
"enduser_setup_dns_stop"
);
ENDUSER_SETUP_DEBUG
(
lua_getstate
(),
"enduser_setup_dns_stop"
);
if
(
state
->
espconn_dns_udp
!=
NULL
)
if
(
state
!=
NULL
&&
state
->
espconn_dns_udp
!=
NULL
)
{
{
espconn_delete
(
state
->
espconn_dns_udp
);
espconn_delete
(
state
->
espconn_dns_udp
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment