# NetStream publish "appends" commands cause Wowza to append them in the wrong order

**URL:** https://community.wowza.com/t/netstream-publish-appends-commands-cause-wowza-to-append-them-in-the-wrong-order/44262
**Category:** Wowza Streaming Engine
**Created:** [November 12, 2015, 7:13pm UTC](https://community.wowza.com/t/netstream-publish-appends-commands-cause-wowza-to-append-them-in-the-wrong-order/44262 "2015-11-12T19:13:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lenny\_Sibaja](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@Lenny\_Sibaja](https://community.wowza.com/u/Lenny_Sibaja)
#### Post date: [November 12, 2015, 7:13pm UTC](https://community.wowza.com/t/netstream-publish-appends-commands-cause-wowza-to-append-them-in-the-wrong-order/44262/1 "2015-11-12T19:13:22Z")

</div>

Hello,

My application needs to record video and I added logic to my swf to try reconnect to Wowza when the connection is dropped.

I am basically following these steps:

1. Create a connection to Wowza.

2. Create a netStream (recording part 1)

Let’s say that the connection is dropped. In this case, what I do is:

1. Close the current netStream.

2. Try to reconnect.

3. When the application is able to reconnect, I create a new netStream and call netStream.publish(sameName, “append”). (recording part 2)

4. The user can continue recording.

This works fine. But let’s say that the connection is dropped again, then I follow the same previous steps and the user can continue recording (recording part 3).

The issue is that sometimes Wowza appends the parts in the wrong order (e.g. recording part 1 + recording part 3 + recording part 2)

Is there a way to tell Wowza the order of these parts?
