Opened 10 years ago
Closed 10 years ago
#3755 closed Bug (fixed)
program hang on shutdown
Reported by: | garypz53 | Owned by: | charles |
---|---|---|---|
Priority: | Normal | Milestone: | 2.30 |
Component: | libtransmission | Version: | 2.12 |
Severity: | Normal | Keywords: | |
Cc: |
Description
quit the program and it just hung there. was running gdb and saw it in the loop below looking for
while( session->web != NULL)
changed it to time out after 5 seconds which seems like a good idea.
void tr_webClose( tr_session * session, tr_web_close_mode close_mode ) {
if( session->web != NULL ) {
session->web->close_mode = close_mode; long timer = time(0) + 5; if( close_mode == TR_WEB_CLOSE_NOW )
while( session->web != NULL && time(0) <= timer)
tr_wait_msec( 100 );
}
}
Change History (2)
comment:1 Changed 10 years ago by charles
- Component changed from Transmission to libtransmission
- Owner set to charles
comment:2 Changed 10 years ago by jordan
- Milestone changed from None Set to 2.30
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
I think this fixed (or at least, greatly improved) now in 2.30