Replace Loop with While(true)

forgot about the SHACoinrpc.cpp