Problem duplicated shortlinks bitly

I’m not sure if this is going to help or not, but it might help to know that some actions fire more than once. For example, save_post will actually fire three or four times on a given save. One is for the revision. One of the new post. Etc.

It could be, in your case, that you’re experience something similar. Whatever it is is firing preform the post_name is assigned and then again after. Maybe?