Fix logic error in register_transport
Merge pull request #267 from meastman/bugfix

Fix logic error in register_transport