340 idles at 1500 won't stay running in gear

Gently close the choke while it is running. If it continues to run, it has a vacuum leak.