stop in same thread
Summary: In a couple places in ServerBootstrap there is code that needs to run in the EB, but if we are already in the EB, it's fine to run it inline. Maybe this should be a method on EB directly? There is runInEventBaseThreadAndWait(), but it explicitly disallows this usage.
Test Plan: used in
D1942242, deadlocks without this, since stop() was called in the same eb
Reviewed By: yfeldblum@fb.com
Subscribers: chalfant, doug, fugalh, folly-diffs@, jsedgwick, yfeldblum
FB internal diff:
D1947581
Signature: t1:
1947581:
1427831021:
d1d08ff9a4a00501d6be60670709fcb17af04134