aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/net_kernel.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2010-08-25 13:28:38 +0200
committerHans Bolinder <[email protected]>2010-08-25 13:31:58 +0200
commit334e0ea11f8740a1102ab8411a959cf8b364eb4d (patch)
tree77fdd40398c18f1ee6573300cc3a91b91f6dad4b /lib/kernel/src/net_kernel.erl
parent6c00708e21bccffff84595f714cf9c1003cc8916 (diff)
downloadotp-334e0ea11f8740a1102ab8411a959cf8b364eb4d.tar.gz
otp-334e0ea11f8740a1102ab8411a959cf8b364eb4d.tar.bz2
otp-334e0ea11f8740a1102ab8411a959cf8b364eb4d.zip
Fix a bug that could cause the net_kernel process to crash.
A bug introduced in kernel-2.13.5.3 has been fixed. If running net_kernel:set_net_ticktime/1 twice within the TransitionPerod the second call caused the net_kernel process to crash with a badmatch.
Diffstat (limited to 'lib/kernel/src/net_kernel.erl')
-rw-r--r--lib/kernel/src/net_kernel.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl
index 1353ac65c6..9875044844 100644
--- a/lib/kernel/src/net_kernel.erl
+++ b/lib/kernel/src/net_kernel.erl
@@ -500,8 +500,8 @@ handle_call({new_ticktime,T,TP}, From, #state{tick = #tick{ticker = Tckr,
time = T,
how = How}}}, From);
-handle_call({new_ticktime,From,_},
- _,
+handle_call({new_ticktime,_T,_TP},
+ From,
#state{tick = #tick_change{time = T}} = State) ->
async_reply({reply, {ongoing_change_to, T}, State}, From).