Not every conversation will be a big hit. You will run out of things to say. Be honest. Say you've got to go to the bathroom or say hi to your other friend. Then go.
Even though it might feel rude, remember that it will free up time to start another potentially interesting conversation with someone else.