abrandoned / protobuf-nats

MIT License
8 stars 4 forks source link

Flushing connection on exit #40

Open film42 opened 5 years ago

film42 commented 5 years ago

I'm not sure if this is a bug or not, but it wouldn't hurt to flush the connection after the thread pool has drained before we exit the app: https://github.com/abrandoned/protobuf-nats/blob/7a9c8a71c7669e2f5ec11ba604abcd3e2e13581f/lib/protobuf/nats/server.rb#L213-L218