gsocketservice: Deactivate the service on accept() error
@pwithnall
Submitted by Philip Withnall Link to original bug (#724224)
Description
This is a proposed fix for the problem described in the commit message: that GSocketService spews warnings indefinitely if the socket is closed behind its back (or otherwise moves into an error state which means accept() always fails).
I’m not entirely sure if this is the best fix, but this is the best approach I can think of given that GSocketService doesn’t have any error reporting to the caller.