server: fix handling double-emits
1.4.7
1.5.0