context only destroy protocols if init got sent
authorAndy Green <andy@warmcat.com>
Sun, 8 May 2016 09:10:51 +0000 (17:10 +0800)
committerAndy Green <andy@warmcat.com>
Sun, 8 May 2016 09:10:51 +0000 (17:10 +0800)
commit465e2660e34f7c5e4b00f63f8c7d6900e5f76a2e
tree3e625bbfbb08499a0b23a3d4dbe4daec1a328def
parent792713f2c13192012db8d23320e11f127c919162
context only destroy protocols if init got sent

If for some reason we exit before the protocol init action
(which is delayed for libuv) we should not send the protocol
destroy messages

Signed-off-by: Andy Green <andy@warmcat.com>
lib/context.c