File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1167,20 +1167,20 @@ ESL_DECLARE(esl_status_t) esl_disconnect(esl_handle_t *handle)
1167
1167
esl_event_safe_destroy (& handle -> last_ievent );
1168
1168
esl_event_safe_destroy (& handle -> info_event );
1169
1169
1170
- if (mutex ) {
1171
- esl_mutex_unlock (mutex );
1172
- esl_mutex_lock (mutex );
1173
- esl_mutex_unlock (mutex );
1174
- esl_mutex_destroy (& mutex );
1175
- }
1176
-
1177
1170
if (handle -> packet_buf ) {
1178
1171
esl_buffer_destroy (& handle -> packet_buf );
1179
1172
}
1180
1173
1181
1174
memset (handle , 0 , sizeof (* handle ));
1182
1175
handle -> destroyed = 1 ;
1183
1176
1177
+ if (mutex ) {
1178
+ esl_mutex_unlock (mutex );
1179
+ esl_mutex_lock (mutex );
1180
+ esl_mutex_unlock (mutex );
1181
+ esl_mutex_destroy (& mutex );
1182
+ }
1183
+
1184
1184
return status ;
1185
1185
}
1186
1186
You can’t perform that action at this time.
0 commit comments