Ticket #1978: sockclose.diff
File sockclose.diff, 959 bytes (added by , 18 years ago) |
---|
-
libs/libmyth/mythsocket.cpp
396 396 { 397 397 VERBOSE(VB_GENERAL, LOC + "readStringList: Error, timeout."); 398 398 close(); 399 if (m_cb) 400 { 401 m_cb->connectionClosed(this); 402 VERBOSE(VB_SOCKET, LOC + "calling cb->connectionClosed()"); 403 } 399 404 return false; 400 405 } 401 406 else if (quickTimeout && elapsed >= 7000) … … 403 408 VERBOSE(VB_GENERAL, LOC + 404 409 "readStringList: Error, timeout (quick)."); 405 410 close(); 411 if (m_cb) 412 { 413 m_cb->connectionClosed(this); 414 VERBOSE(VB_SOCKET, LOC + "calling cb->connectionClosed()"); 415 } 406 416 return false; 407 417 } 408 418