Skip to content

Commit

Permalink
Fix compile error from library keepalive handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Mar 6, 2016
1 parent 1065a0f commit a79412e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static int callback_mqtt(struct libwebsocket_context *context,
_mosquitto_packet_cleanup(packet);
_mosquitto_free(packet);

mosq->last_msg_out = mosquitto_time();
mosq->next_msg_out = mosquitto_time() + mosq->keepalive;

if(mosq->current_out_packet){
libwebsocket_callback_on_writable(mosq->ws_context, mosq->wsi);
Expand Down

0 comments on commit a79412e

Please sign in to comment.