I think that my client was syncing when i did the transaction. So thanks for giving me a answer to my problem, but i feel that the client should be able to listen to new transactions and syncing up to the blockchain at the same time dont you?
It has to have the blockchain to verify that the transaction is valid.